[3.0] 2481d4b Add a missing derefence.

Tollef Fog Heen tfheen at varnish-cache.org
Thu Sep 22 14:04:06 CEST 2011


commit 2481d4b647613bd0ab58c7ef54ac63598c027f12
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Sep 20 21:29:03 2011 +0000

    Add a missing derefence.

diff --git a/bin/varnishtest/vtc_http.c b/bin/varnishtest/vtc_http.c
index 32c7e0c..8f96577 100644
--- a/bin/varnishtest/vtc_http.c
+++ b/bin/varnishtest/vtc_http.c
@@ -1078,7 +1078,7 @@ cmd_http_accept(CMD_ARGS)
 	CAST_OBJ_NOTNULL(hp, priv, HTTP_MAGIC);
 	AZ(av[1]);
 	assert(hp->sfd != NULL);
-	assert(hp->sfd >= 0);
+	assert(*hp->sfd >= 0);
 	VTCP_close(&hp->fd);
 	vtc_log(vl, 4, "Accepting");
 	hp->fd = accept(*hp->sfd, NULL, NULL);



More information about the varnish-commit mailing list