Patch to apache_1.3.0+ssl_1.22
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch to apache_1.3.0+ssl_1.22





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");*/
      }