r2371 - trunk/varnish-cache/lib/libvarnish
phk at projects.linpro.no
phk at projects.linpro.no
Wed Jan 23 11:05:45 CET 2008
Author: phk
Date: 2008-01-23 11:05:45 +0100 (Wed, 23 Jan 2008)
New Revision: 2371
Modified:
trunk/varnish-cache/lib/libvarnish/cli_common.c
Log:
Make sure to always NULL the pointer argument to cli_readres().
Implicated in Coverity Scan (CID:12-16)
Modified: trunk/varnish-cache/lib/libvarnish/cli_common.c
===================================================================
--- trunk/varnish-cache/lib/libvarnish/cli_common.c 2008-01-23 09:46:13 UTC (rev 2370)
+++ trunk/varnish-cache/lib/libvarnish/cli_common.c 2008-01-23 10:05:45 UTC (rev 2371)
@@ -143,6 +143,8 @@
unsigned u, v;
char *p;
+ if (ptr != NULL)
+ *ptr = NULL;
i = read_tmo(fd, res, CLI_LINE0_LEN, tmo);
if (i != CLI_LINE0_LEN) {
if (status != NULL)
More information about the varnish-commit
mailing list