You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2013/06/01 10:43:12 UTC
svn commit: r1488492 - /httpd/httpd/trunk/support/ab.c
Author: jailletc36
Date: Sat Jun 1 08:43:12 2013
New Revision: 1488492
URL: http://svn.apache.org/r1488492
Log:
Check if malloc succeeded
PR54344 [Bill Parker, wp02855 gmail com]
Modified:
httpd/httpd/trunk/support/ab.c
Modified: httpd/httpd/trunk/support/ab.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/support/ab.c?rev=1488492&r1=1488491&r2=1488492&view=diff
==============================================================================
--- httpd/httpd/trunk/support/ab.c (original)
+++ httpd/httpd/trunk/support/ab.c Sat Jun 1 08:43:12 2013
@@ -627,6 +627,10 @@ static void ssl_proceed_handshake(struct
pk_bits = 0; /* Anon DH */
ssl_info = malloc(128);
+ if (ssl_info == NULL) {
+ fprintf(stderr, "ab: Could not allocate ssl_info data buffer\n");
+ return;
+ }
apr_snprintf(ssl_info, 128, "%s,%s,%d,%d",
SSL_get_version(c->ssl),
SSL_CIPHER_get_name(ci),