[master] db006779d Pass the correct size

Federico G. Schwindt fgsch at lodoss.net
Thu Mar 14 20:13:07 UTC 2019


commit db006779d1c3256858fa8ae6a0d43cf303e43803
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Thu Mar 14 20:09:41 2019 +0000

    Pass the correct size
    
    Reported by coverity.

diff --git a/bin/varnishd/cache/cache_acceptor.c b/bin/varnishd/cache/cache_acceptor.c
index f80d4b2f4..8300d1b5d 100644
--- a/bin/varnishd/cache/cache_acceptor.c
+++ b/bin/varnishd/cache/cache_acceptor.c
@@ -518,7 +518,7 @@ vca_accept_task(struct worker *wrk, void *arg)
 				strcpy(lport, "0");
 			} else {
 				VTCP_myname(ls->sock, laddr, VTCP_ADDRBUFSIZE,
-				    lport, VTCP_ADDRBUFSIZE);
+				    lport, VTCP_PORTBUFSIZE);
 			}
 
 			VSL(SLT_SessError, 0, "%s %s %s %d %d %s",


More information about the varnish-commit mailing list