mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
Additional bug fix
libmysql/libmysql.c: Additional fix for connection being established during select()
This commit is contained in:
parent
f5144a8a56
commit
ec6bd7a49a
1 changed files with 3 additions and 0 deletions
|
@ -207,6 +207,9 @@ static int connect2(my_socket s, const struct sockaddr *name, uint namelen,
|
|||
errno = s_err;
|
||||
return(-1); /* but return an error... */
|
||||
}
|
||||
if (res && result > 0)
|
||||
result=res=0; // We did it in select() !!!
|
||||
|
||||
return((res) ? res : result); /* It's all good! */
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue