From 828cb4661eeb57b685d0eb72c195813556e95895 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 17 Mar 2011 16:42:16 +0000 Subject: [PATCH] * 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 --- support/ab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/ab.c b/support/ab.c index 75c514680fd..59461dd53b5 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"); } -- 2.47.2