From: Vsevolod Stakhov Date: Mon, 3 Jun 2013 16:17:07 +0000 (+0100) Subject: Fix UDP sockets creation. X-Git-Tag: 0.5.5~9 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9e9d8d7da25d8e44ae636237d873746b425016d5;p=rspamd.git Fix UDP sockets creation. --- diff --git a/src/util.c b/src/util.c index 56f6c5f26..716457d45 100644 --- a/src/util.c +++ b/src/util.c @@ -349,7 +349,7 @@ make_universal_socket (const gchar *credits, guint16 port, gint type, gboolean a rspamd_snprintf (portbuf, sizeof (portbuf), "%d", (int)port); if ((r = getaddrinfo (credits, portbuf, &hints, &res)) == 0) { - r = make_tcp_socket (res, is_server, async); + r = make_inet_socket (type, res, is_server, async); freeaddrinfo (res); return r; }