summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-09-24 20:03:10 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-09-24 20:03:10 +0100
commit5134ceb34174fd64512d4d60e53ee8a1e476bb86 (patch)
treead3fed0aa4156cddb6ac0da710a909096bdb49bf
parent43de82c1611acec494eaa7f89c047f9ef8f14088 (diff)
downloadrspamd-5134ceb34174fd64512d4d60e53ee8a1e476bb86.tar.gz
rspamd-5134ceb34174fd64512d4d60e53ee8a1e476bb86.zip
[Minor] Oops, remove experiment
-rw-r--r--src/libutil/addr.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libutil/addr.c b/src/libutil/addr.c
index 63e92c801..2e32d4bd1 100644
--- a/src/libutil/addr.c
+++ b/src/libutil/addr.c
@@ -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;