From: Ben Pfaff Date: Tue, 1 Jul 2008 21:17:41 +0000 (-0700) Subject: Fix segfault when SSL_connect or SSL_accept reports an error. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18349ee8d63a2868af6dfe71e220fa27cd77a40d;p=openvswitch Fix segfault when SSL_connect or SSL_accept reports an error. --- diff --git a/lib/vconn-ssl.c b/lib/vconn-ssl.c index 99b82699..244cc60e 100644 --- a/lib/vconn-ssl.c +++ b/lib/vconn-ssl.c @@ -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; }