summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authortsmith/tim@siva.hindu.god <>2006-12-26 16:49:10 -0700
committertsmith/tim@siva.hindu.god <>2006-12-26 16:49:10 -0700
commit0cb9cee7f4b72e198e8ae4600d20d5753238f205 (patch)
treee6bcbe8baaed6b27ac43fd5aa816ebe6f1e949f8 /vio
parentbe15e3bc15921085ea558f8764ed1fad137ccaa1 (diff)
parent4d8942648bfbf894908e20074da332fff03237ed (diff)
downloadmariadb-git-0cb9cee7f4b72e198e8ae4600d20d5753238f205.tar.gz
Merge siva.hindu.god:/usr/home/tim/m/bk/g51
into siva.hindu.god:/usr/home/tim/m/bk/tmp/mrg51-dec26
Diffstat (limited to 'vio')
-rw-r--r--vio/viossl.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/vio/viossl.c b/vio/viossl.c
index 6686e63de0e..4267486112f 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -125,12 +125,16 @@ int vio_ssl_close(Vio *vio)
{
switch ((r= SSL_shutdown(ssl)))
{
- case 1: /* Shutdown successful */
+ case 1:
+ /* Shutdown successful */
+ break;
+ case 0:
+ /*
+ Shutdown not yet finished - since the socket is going to
+ be closed there is no need to call SSL_shutdown() a second
+ time to wait for the other side to respond
+ */
break;
- case 0: /* Shutdown not yet finished, call it again */
- if ((r= SSL_shutdown(ssl) >= 0))
- break;
- /* Fallthrough */
default: /* Shutdown failed */
DBUG_PRINT("vio_error", ("SSL_shutdown() failed, error: %d",
SSL_get_error(ssl, r)));