]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, remove experiment
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 24 Sep 2022 19:03:10 +0000 (20:03 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 24 Sep 2022 19:03:10 +0000 (20:03 +0100)
src/libutil/addr.c

index 63e92c8014db3607661dfddeae91ef3b4853d133..2e32d4bd106c2819638cfdf053b2457d1b63c3e9 100644 (file)
@@ -1060,13 +1060,6 @@ rspamd_inet_address_connect (const rspamd_inet_addr_t *addr, gint type,
 
        if (addr->af == AF_UNIX) {
                sa = (const struct sockaddr *)&addr->u.un->addr;
-
-               struct sockaddr_un ssun;
-               strcpy(ssun.sun_path, tmpnam(NULL));
-               ssun.sun_len = SUN_LEN(&ssun);
-               ssun.sun_family = AF_UNIX;
-               /* Also bind unix client sockets to allow unconnected reply from that side */
-               r = bind (fd, &ssun, ssun.sun_len);
        }
        else {
                sa = &addr->u.in.addr.sa;