diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-07-10 21:04:37 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-07-10 21:04:37 +0000 |
| commit | 8b0a3d2810b46a8435365611d8274b5473429a75 (patch) | |
| tree | 2da110af0dc82b414a929541c79933437ed7253b /src/http/ngx_http_upstream.c | |
| parent | f53d0f3177edbf4fa331c0496f0941e6c39a5f7b (diff) | |
| download | nginx-8b0a3d2810b46a8435365611d8274b5473429a75.tar.gz nginx-8b0a3d2810b46a8435365611d8274b5473429a75.tar.bz2 | |
fix segfault when session was freed twice
Diffstat (limited to 'src/http/ngx_http_upstream.c')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index c1bae266c..d01941a86 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -657,7 +657,7 @@ ngx_http_upstream_ssl_init_connection(ngx_http_request_t *r, c->sendfile = 0; u->output.sendfile = 0; - if (ngx_ssl_set_session(c, u->peer.ssl_session) != NGX_OK) { + if (u->peer.set_session(&u->peer, u->peer.data) != NGX_OK) { ngx_http_upstream_finalize_request(r, u, NGX_HTTP_INTERNAL_SERVER_ERROR); return; |
