projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16e4361
)
Fix segfault when SSL_connect or SSL_accept reports an error.
author
Ben Pfaff
<blp@nicira.com>
Tue, 1 Jul 2008 21:17:41 +0000
(14:17 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 1 Jul 2008 21:17:41 +0000
(14:17 -0700)
lib/vconn-ssl.c
patch
|
blob
|
history
diff --git
a/lib/vconn-ssl.c
b/lib/vconn-ssl.c
index 99b82699f7e27548ac9132b8a4f0d39fb043935a..244cc60ebc57b1146e450f33e15557bf50b38662 100644
(file)
--- 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;
}