summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.mysql.com>2006-12-22 00:39:08 +0100
committerunknown <msvensson@pilot.mysql.com>2006-12-22 00:39:08 +0100
commit1acf0e78d7c477220c9b04fe6a79b1ae506a3262 (patch)
tree07c5b5c424845f49a432c1931fce67e856a590d0 /vio
parentaf47c2806b01b89d6443ee565155bfdc6f838815 (diff)
parentb461c41cd3f2b6ff6a5ce757b5d708916be85959 (diff)
downloadmariadb-git-1acf0e78d7c477220c9b04fe6a79b1ae506a3262.tar.gz
Merge pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
into pilot.mysql.com:/home/msvensson/mysql/mysql-5.1-new-maint include/mysql_h.ic: Auto merged mysql-test/t/mysqltest.test: Auto merged mysql-test/t/rpl_rotate_logs.test: Auto merged mysql-test/t/trigger.test: Auto merged vio/viossl.c: Auto merged
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 f436262a3ce..806f6fc356a 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -126,12 +126,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)));