diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-27 23:44:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-27 23:44:14 +0000 |
commit | 50f4a61a360ad3f787d0a42991eaac75d9374609 (patch) | |
tree | be9cee7e53f6bef99adf3769a6115d9e78778184 | |
parent | 46a402e03ebd63ab6acce0775ab3158ee5d4f687 (diff) | |
download | newlib-50f4a61a360ad3f787d0a42991eaac75d9374609.zip newlib-50f4a61a360ad3f787d0a42991eaac75d9374609.tar.gz newlib-50f4a61a360ad3f787d0a42991eaac75d9374609.tar.bz2 |
* fhandler_socket.cc (fhandler_socket::sendto): Fix potential unitialized value
return.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_socket.cc | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index d4433eb..1307b82 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> * cygwin.din: Export pthread_getsequence_np. diff --git a/winsup/cygwin/fhandler_socket.cc b/winsup/cygwin/fhandler_socket.cc index 7a4465f..fa44f2e 100644 --- a/winsup/cygwin/fhandler_socket.cc +++ b/winsup/cygwin/fhandler_socket.cc @@ -862,9 +862,9 @@ fhandler_socket::sendto (const void *ptr, size_t len, int flags, DWORD ret; if (!winsock2_active) - res = ::sendto (get_socket (), (const char *) ptr, len, - flags & MSG_WINMASK, - (to ? (const struct sockaddr *) &sin : NULL), tolen); + ret = res = ::sendto (get_socket (), (const char *) ptr, len, + flags & MSG_WINMASK, + (to ? (const struct sockaddr *) &sin : NULL), tolen); else { WSABUF wsabuf = { len, (char *) ptr }; |