From 18349ee8d63a2868af6dfe71e220fa27cd77a40d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 1 Jul 2008 14:17:41 -0700 Subject: [PATCH] Fix segfault when SSL_connect or SSL_accept reports an error. --- lib/vconn-ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2