[nginx] SSL: fixed SSL_shutdown() comment.

Maxim Dounin mdounin at mdounin.ru
Fri Feb 19 15:13:45 UTC 2016


details:   http://hg.nginx.org/nginx/rev/d194cad6dd3a
branches:  
changeset: 6406:d194cad6dd3a
user:      Maxim Dounin <mdounin at mdounin.ru>
date:      Fri Feb 19 17:27:23 2016 +0300
description:
SSL: fixed SSL_shutdown() comment.

diffstat:

 src/event/ngx_event_openssl.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -1797,7 +1797,7 @@ ngx_ssl_shutdown(ngx_connection_t *c)
 
     sslerr = 0;
 
-    /* SSL_shutdown() never returns -1, on error it returns 0 */
+    /* before 0.9.8m SSL_shutdown() returned 0 instead of -1 on errors */
 
     if (n != 1 && ERR_peek_error()) {
         sslerr = SSL_get_error(c->ssl->connection, n);



More information about the nginx-devel mailing list