Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 79688 invoked from network); 4 Feb 2006 21:04:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Feb 2006 21:04:25 -0000 Received: (qmail 707 invoked by uid 500); 4 Feb 2006 21:04:25 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 604 invoked by uid 500); 4 Feb 2006 21:04:24 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 593 invoked by uid 99); 4 Feb 2006 21:04:24 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Feb 2006 13:04:24 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 04 Feb 2006 13:04:24 -0800 Received: (qmail 79557 invoked by uid 65534); 4 Feb 2006 21:04:03 -0000 Message-ID: <20060204210403.79556.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r374926 - /apr/apr/branches/0.9.x/network_io/win32/sendrecv.c Date: Sat, 04 Feb 2006 21:04:03 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: wrowe Date: Sat Feb 4 13:04:00 2006 New Revision: 374926 URL: http://svn.apache.org/viewcvs?rev=374926&view=rev Log: Zero the len out value on error, to follow the unix behavior of apr_socket_send() Submitted by: Chris Demetriou Backports: 374924 Modified: apr/apr/branches/0.9.x/network_io/win32/sendrecv.c Modified: apr/apr/branches/0.9.x/network_io/win32/sendrecv.c URL: http://svn.apache.org/viewcvs/apr/apr/branches/0.9.x/network_io/win32/sendrecv.c?rev=374926&r1=374925&r2=374926&view=diff ============================================================================== --- apr/apr/branches/0.9.x/network_io/win32/sendrecv.c (original) +++ apr/apr/branches/0.9.x/network_io/win32/sendrecv.c Sat Feb 4 13:04:00 2006 @@ -55,6 +55,7 @@ #endif if (rv == SOCKET_ERROR) { lasterror = apr_get_netos_error(); + *len = 0; return lasterror; }