We were seeing segmentation faults, and this worked around a frequent case
of ssl == NULL. We noticed this when additional auth_ code we we using was
not being reached. It was otherwise not obvious.
Randall
diff -c -r1.2 apache_ssl.c
*** apache_ssl.c 1998/08/25 20:58:57 1.2
--- apache_ssl.c 1998/08/29 18:21:26
***************
*** 1234,1240 ****
conn_rec *conn=_conn;
SSL *ssl=conn->client->ssl;
! SSL_free(ssl);
/* ap_log_error(APLOG_MARK,APLOG_DEBUG|APLOG_NOERRNO,conn->server,
"Closed");*/
}
--- 1234,1241 ----
conn_rec *conn=_conn;
SSL *ssl=conn->client->ssl;
! if (ssl)
! SSL_free(ssl);
/* ap_log_error(APLOG_MARK,APLOG_DEBUG|APLOG_NOERRNO,conn->server,
"Closed");*/
}