Skip to content

Commit 684287a

Browse files
author
holzboote@googlemail.com
committed
Fix for CONC-99: memory corruption
In case a connection fails and vio was already created the socket needs to be closed only via vio_close. A 2nd close may lead to corruption in a threaded evironment in case the handle was opened by a nother thread.
1 parent e038a7f commit 684287a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libmariadb/libmariadb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,6 @@ MYSQL *mthd_my_real_connect(MYSQL *mysql, const char *host, const char *user,
17041704
{
17051705
my_set_error(mysql, CR_CONN_HOST_ERROR, SQLSTATE_UNKNOWN, ER(CR_CONN_HOST_ERROR),
17061706
host, socket_errno);
1707-
closesocket(sock);
17081707
goto error;
17091708
}
17101709
}

0 commit comments

Comments
 (0)