From: Joe Orton Date: Thu, 17 Mar 2011 16:42:16 +0000 (+0000) Subject: * support/ab.c (test): Catch more calloc failures. X-Git-Tag: 2.3.12~213 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=828cb4661eeb57b685d0eb72c195813556e95895;p=apache * support/ab.c (test): Catch more calloc failures. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1082586 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/ab.c b/support/ab.c index 75c514680f..59461dd53b 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1606,7 +1606,7 @@ static void test(void) * XXX: would be nice. */ stats = calloc(requests, sizeof(struct data)); - if (stats == NULL) { + if (stats == NULL || con == NULL) { err("Cannot allocate memory for result statistics"); }