Fix segfault when SSL_connect or SSL_accept reports an error.
authorBen Pfaff <blp@nicira.com>
Tue, 1 Jul 2008 21:17:41 +0000 (14:17 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 1 Jul 2008 21:17:41 +0000 (14:17 -0700)
lib/vconn-ssl.c

index 99b82699f7e27548ac9132b8a4f0d39fb043935a..244cc60ebc57b1146e450f33e15557bf50b38662 100644 (file)
@@ -330,8 +330,9 @@ ssl_connect(struct vconn *vconn)
             if (retval < 0 && ssl_wants_io(error)) {
                 return EAGAIN;
             } else {
+                int unused;
                 interpret_ssl_error((sslv->type == CLIENT ? "SSL_connect"
-                                     : "SSL_accept"), retval, error, NULL);
+                                     : "SSL_accept"), retval, error, &unused);
                 shutdown(sslv->fd, SHUT_RDWR);
                 return EPROTO;
             }