[6.0] be1906dc1 Use VTCP_Assert() in VTCP_read()
Reza Naghibi
reza at naghibi.com
Thu Apr 22 15:55:07 UTC 2021
commit be1906dc125dd2efce5f19bccf8d55697e59a24d
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Wed Oct 7 16:04:21 2020 +0200
Use VTCP_Assert() in VTCP_read()
diff --git a/lib/libvarnish/vtcp.c b/lib/libvarnish/vtcp.c
index a40d3d1e4..d1796586f 100644
--- a/lib/libvarnish/vtcp.c
+++ b/lib/libvarnish/vtcp.c
@@ -613,5 +613,6 @@ VTCP_read(int fd, void *ptr, size_t len, vtim_dur tmo)
return (-2);
}
i = read(fd, ptr, len);
+ VTCP_Assert(i);
return (i < 0 ? -1 : i);
}
More information about the varnish-commit
mailing list