Skip to content

Commit

Permalink
bugfix: segmentation fault might happen in ssl_session_fetch_by_lua*,…
Browse files Browse the repository at this point in the history
… caught by the clang static analyzer.
  • Loading branch information
agentzh committed Jul 30, 2016
1 parent 5b2e1d2 commit dbb48e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ngx_http_lua_ssl_session_fetchby.c
Expand Up @@ -215,7 +215,7 @@ ngx_http_lua_ssl_sess_fetch_handler(ngx_ssl_conn_t *ssl_conn, u_char *id,
#ifdef SSL_ERROR_PENDING_SESSION
return SSL_magic_pending_session_ptr();
#else
ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
ngx_log_error(NGX_LOG_CRIT, c->log, 0,
"lua: cannot yield in sess get cb: "
"missing async sess get cb support in OpenSSL");
return NULL;
Expand Down Expand Up @@ -349,7 +349,7 @@ ngx_http_lua_ssl_sess_fetch_handler(ngx_ssl_conn_t *ssl_conn, u_char *id,
#ifdef SSL_ERROR_PENDING_SESSION
return SSL_magic_pending_session_ptr();
#else
ngx_log_error(NGX_LOG_CRIT, r->connection->log, 0,
ngx_log_error(NGX_LOG_CRIT, c->log, 0,
"lua: cannot yield in sess get cb: "
"missing async sess get cb support in OpenSSL");

Expand Down

0 comments on commit dbb48e3

Please sign in to comment.