[4.1] fccc2aa Fix unchecked return
PÃ¥l Hermunn Johansen
hermunn at varnish-software.com
Mon Sep 12 15:48:17 CEST 2016
commit fccc2aa8fc31f0e1c3d94a7e1d09e8a070648023
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Thu Sep 8 11:27:28 2016 +0200
Fix unchecked return
diff --git a/bin/varnishtest/vtc_client.c b/bin/varnishtest/vtc_client.c
index 804ef6d..2d01fe0 100644
--- a/bin/varnishtest/vtc_client.c
+++ b/bin/varnishtest/vtc_client.c
@@ -97,7 +97,8 @@ client_thread(void *priv)
vtc_log(c->vl, 0, "Failed to open %s: %s",
VSB_data(vsb), err);
assert(fd >= 0);
- VTCP_blocking(fd);
+ /* VTCP_blocking does its own checks, trust it */
+ (void)VTCP_blocking(fd);
VTCP_myname(fd, mabuf, sizeof mabuf, mpbuf, sizeof mpbuf);
vtc_log(vl, 3, "connected fd %d from %s %s to %s",
fd, mabuf, mpbuf, VSB_data(vsb));
More information about the varnish-commit
mailing list