* fhandler_socket.cc (fhandler_socket::sendto): Fix potential unitialized value
return.
This commit is contained in:
parent
46a402e03e
commit
50f4a61a36
|
@ -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.
|
||||
|
|
|
@ -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 };
|
||||
|
|
Loading…
Reference in New Issue