[master] 3998482 Try to make Coverity understand that this struct telnet is used.

Poul-Henning Kamp phk at varnish-cache.org
Tue Oct 1 16:17:25 CEST 2013


commit 39984825007b07e974305ab63358f11debb89937
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Oct 1 14:17:09 2013 +0000

    Try to make Coverity understand that this struct telnet is used.

diff --git a/bin/varnishd/mgt/mgt_cli.c b/bin/varnishd/mgt/mgt_cli.c
index 6f319f6..9ee037f 100644
--- a/bin/varnishd/mgt/mgt_cli.c
+++ b/bin/varnishd/mgt/mgt_cli.c
@@ -550,6 +550,7 @@ mgt_cli_telnet(const char *T_arg)
 		tn->ev->fd = sock;
 		tn->ev->fd_flags = POLLIN;
 		tn->ev->callback = telnet_accept;
+		tn->ev->priv = tn;;
 		AZ(vev_add(mgt_evb, tn->ev));
 		free(ta[i]);
 		ta[i] = NULL;



More information about the varnish-commit mailing list