delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Authentication-Warning: | berenice.lee: mikael owned process doing -bs |
Date: | Wed, 27 Nov 2002 23:18:26 +0100 (CET) |
From: | Mikael Ylikoski <my AT post DOT utfors DOT se> |
X-X-Sender: | mikael AT berenice DOT lee |
To: | cygwin AT cygwin DOT com |
Subject: | Incorrect return values from sendto |
Message-ID: | <Pine.LNX.4.44.0211252319530.8626-100000@berenice.lee> |
MIME-Version: | 1.0 |
There is a bug in sendto in cygwin-1.3.16 which can cause an uninitialized value to be returned. --- fhandler_socket.cc.orig Mon Nov 25 23:15:37 2002 +++ fhandler_socket.cc Mon Nov 25 23:16:32 2002 @@ -862,9 +862,9 @@ DWORD ret; if (!winsock2_active) - res = ::sendto (get_socket (), (const char *) ptr, len, - flags & MSG_WINMASK, - (to ? (const struct sockaddr *) &sin : NULL), tolen); + res = ret = ::sendto (get_socket (), (const char *) ptr, len, + flags & MSG_WINMASK, + (to ? (const struct sockaddr *) &sin : NULL), tolen); else { WSABUF wsabuf = { len, (char *) ptr }; /Mikael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |