Module: wine Branch: master Commit: f542a0c18b5a6f0f4d0ef3ce1eb72f48c458035f URL: http://source.winehq.org/git/wine.git/?a=commit;h=f542a0c18b5a6f0f4d0ef3ce1e...
Author: Sebastian Lackner sebastian@fds-team.de Date: Sun Jun 7 19:19:39 2015 +0200
ws2_32: Fix uninitialized memory access in do_poll (Coverity).
---
dlls/ws2_32/socket.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c index fdf68a3..1a4533b 100644 --- a/dlls/ws2_32/socket.c +++ b/dlls/ws2_32/socket.c @@ -4800,6 +4800,7 @@ static int do_poll(struct pollfd *pollfds, int count, int timeout) { if (errno != EINTR) break; if (timeout < 0) continue; + if (timeout == 0) return 0;
gettimeofday( &tv2, 0 );