[master] b789480f2 mac: Polish

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Tue Nov 23 12:31:12 UTC 2021


commit b789480f2a37a76ce02a6f66b1810b1c3a69d0e9
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 6488c5b03..86c62683b 100644
--- a/bin/varnishd/mgt/mgt_acceptor.c
+++ b/bin/varnishd/mgt/mgt_acceptor.c
@@ -152,8 +152,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