]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Fix and prevent some segfaults in ab:
authorJoe Orton <jorton@apache.org>
Fri, 15 Apr 2005 10:51:44 +0000 (10:51 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 15 Apr 2005 10:51:44 +0000 (10:51 +0000)
commit4800ec9ba7f3cbd02b9b99382c86724944bf5ccf
tree350b730837f5e2f0259da67d57bfb2f3534057d1
parent61ca44a8653ff6c37ab8e3bdee1c000e42e6bea8
Fix and prevent some segfaults in ab:

* support/ab.c (main): Fail if given concurrency level greater than
number of requests, to prevent segfaults later.
(ssl_print_cert_info): Use the correct buffer size.
(ssl_start_connect): SSL_get_peer_cert_chain doesn't bump refcounts,
so don't free the cert chain here.
(test): Use both calloc parameters (unrelated cleanup).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@161437 13f79535-47bb-0310-9956-ffa450edef68
support/ab.c