]> git.kaiwu.me - nginx.git/commitdiff
SSL: fixed SSL_shutdown() comment.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 19 Feb 2016 14:27:23 +0000 (17:27 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 19 Feb 2016 14:27:23 +0000 (17:27 +0300)
src/event/ngx_event_openssl.c

index 57dfc6ca15a4bc737db695d57dffb3547c99b52e..1ca1945e59caf4584a7d268f2bddc68ad193cb73 100644 (file)
@@ -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);