commit 5134ceb: [Minor] Oops, remove experiment

Vsevolod Stakhov vsevolod at rspamd.com
Sat Sep 24 19:07:11 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-09-24 20:03:10 +0100
URL: https://github.com/rspamd/rspamd/commit/5134ceb34174fd64512d4d60e53ee8a1e476bb86 (HEAD -> master)

[Minor] Oops, remove experiment

---
 src/libutil/addr.c | 7 -------
 1 file changed, 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;


More information about the Commits mailing list