1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 067_fix_segfault_in_ab.dpatch by Ryan Niebur <ryanryan52@gmail.com>
4
## DP: Do not free what SSL_get_peer_cert_chain returns. It returns a
5
## pointer to memory that is freed later on with the
6
## session. (Bug#495982)
9
diff -urNad apache2-2.2.9~/support/ab.c apache2-2.2.9/support/ab.c
10
--- apache2-2.2.9~/support/ab.c 2008-05-28 05:58:01.000000000 -0700
11
+++ apache2-2.2.9/support/ab.c 2008-11-29 15:47:41.000000000 -0800
13
for (i=1; i<count; i++) {
14
cert = (X509 *)SK_VALUE(sk, i);
15
ssl_print_cert_info(bio_out, cert);
19
cert = SSL_get_peer_certificate(c->ssl);