[master] 6da0cfd Check malloc return
Guillaume Quintard
guillaume at varnish-software.com
Wed Aug 31 13:52:14 CEST 2016
commit 6da0cfdae50c64dbe4af050fc0c19c78a496cd10
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Tue Aug 30 10:25:25 2016 +0200
Check malloc return
diff --git a/lib/libvarnish/vcli_proto.c b/lib/libvarnish/vcli_proto.c
index 27e2104..3c6ede8 100644
--- a/lib/libvarnish/vcli_proto.c
+++ b/lib/libvarnish/vcli_proto.c
@@ -168,6 +168,7 @@ VCLI_ReadResult(int fd, unsigned *status, char **ptr, double tmo)
*status = u;
p = malloc(v + 1L);
+ AN(p);
if (p == NULL)
break;
More information about the varnish-commit
mailing list