* fhandler_socket.cc (fhandler_socket::sendto): Fix potential unitialized value

return.
This commit is contained in:
Christopher Faylor 2002-11-27 23:44:14 +00:00
parent 46a402e03e
commit 50f4a61a36
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-11-27 Mikael Ylikoski <my@post.utfors.se>
* fhandler_socket.cc (fhandler_socket::sendto): Fix potential
unitialized value return.
2002-11-27 Christopher Faylor <cgf@redhat.com> 2002-11-27 Christopher Faylor <cgf@redhat.com>
* cygwin.din: Export pthread_getsequence_np. * cygwin.din: Export pthread_getsequence_np.

View File

@ -862,7 +862,7 @@ fhandler_socket::sendto (const void *ptr, size_t len, int flags,
DWORD ret; DWORD ret;
if (!winsock2_active) if (!winsock2_active)
res = ::sendto (get_socket (), (const char *) ptr, len, ret = res = ::sendto (get_socket (), (const char *) ptr, len,
flags & MSG_WINMASK, flags & MSG_WINMASK,
(to ? (const struct sockaddr *) &sin : NULL), tolen); (to ? (const struct sockaddr *) &sin : NULL), tolen);
else else