[master] 97d6342c2 mac: Polish

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Mon Nov 15 11:46:06 UTC 2021


commit 97d6342c2abcbecd5b6567dddb6f47c3bf3b860f
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Nov 15 12:44:19 2021 +0100

    mac: Polish

diff --git a/bin/varnishd/mgt/mgt_acceptor.c b/bin/varnishd/mgt/mgt_acceptor.c
index 441a12166..5204d259c 100644
--- a/bin/varnishd/mgt/mgt_acceptor.c
+++ b/bin/varnishd/mgt/mgt_acceptor.c
@@ -151,8 +151,7 @@ mk_listen_sock(const struct listen_arg *la, const struct suckaddr *sa)
 	ls->sock = -1;
 	ls->addr = VSA_Clone(sa);
 	AN(ls->addr);
-	ls->endpoint = strdup(la->endpoint);
-	AN(ls->endpoint);
+	REPLACE(ls->endpoint, la->endpoint);
 	ls->name = la->name;
 	ls->transport = la->transport;
 	ls->perms = la->perms;


More information about the varnish-commit mailing list