* fhandler_socket.cc (fhandler_socket::sendto): Fix potential unitialized value
return.
This commit is contained in:
		| @@ -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. | ||||||
|   | |||||||
| @@ -862,9 +862,9 @@ 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 | ||||||
|     { |     { | ||||||
|       WSABUF wsabuf = { len, (char *) ptr }; |       WSABUF wsabuf = { len, (char *) ptr }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user