[master] 6b85eea Revert "Check malloc return"
Guillaume Quintard
guillaume at varnish-software.com
Mon Sep 26 11:45:05 CEST 2016
commit 6b85eeae6425b4be7a68418494cd92ffaaeadeb8
Author: Guillaume Quintard <guillaume at varnish-software.com>
Date: Mon Sep 26 11:39:41 2016 +0200
Revert "Check malloc return"
This reverts commit 6da0cfdae50c64dbe4af050fc0c19c78a496cd10.
That was a stupid commit, the malloc failure is already handled
Spotted by: @scn
diff --git a/lib/libvarnish/vcli_proto.c b/lib/libvarnish/vcli_proto.c
index 3c6ede8..27e2104 100644
--- a/lib/libvarnish/vcli_proto.c
+++ b/lib/libvarnish/vcli_proto.c
@@ -168,7 +168,6 @@ 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