]> git.kaiwu.me - nginx.git/commit
SSL: fixed $ssl_session_id possible segfault after 97e3769637a7.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 23 Jan 2014 14:32:26 +0000 (18:32 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 23 Jan 2014 14:32:26 +0000 (18:32 +0400)
commit1ebb44e3e3dcc7e321819a54915e9eff2aa1aa81
treedec3e862570aa0a1c58cf1dceb0a2c3d13a0cb71
parentbb40c4ed2f937ac5f2eb276954e67216cd09c473
SSL: fixed $ssl_session_id possible segfault after 97e3769637a7.

Even during execution of a request it is possible that there will be
no session available, notably in case of renegotiation.  As a result
logging of $ssl_session_id in some cases caused NULL pointer dereference
after revision 97e3769637a7 (1.5.9).  The check added returns an empty
string if there is no session available.
src/event/ngx_event_openssl.c