Commit ec6bd7a4 authored by unknown's avatar unknown

Additional bug fix


libmysql/libmysql.c:
  Additional fix for connection being established during select()
parent f5144a8a
...@@ -207,6 +207,9 @@ static int connect2(my_socket s, const struct sockaddr *name, uint namelen, ...@@ -207,6 +207,9 @@ static int connect2(my_socket s, const struct sockaddr *name, uint namelen,
errno = s_err; errno = s_err;
return(-1); /* but return an error... */ 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! */ return((res) ? res : result); /* It's all good! */
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment