You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2006/02/04 22:03:47 UTC

svn commit: r374925 - /apr/apr/branches/1.2.x/network_io/win32/sendrecv.c

Author: wrowe
Date: Sat Feb  4 13:03:44 2006
New Revision: 374925

URL: http://svn.apache.org/viewcvs?rev=374925&view=rev
Log:

  Zero the len out value on error, to follow the unix behavior of
  apr_socket_send()
 
Submitted by: Chris Demetriou <c.g.demetriou gmail.com>
Backports: 374924

Modified:
    apr/apr/branches/1.2.x/network_io/win32/sendrecv.c

Modified: apr/apr/branches/1.2.x/network_io/win32/sendrecv.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/network_io/win32/sendrecv.c?rev=374925&r1=374924&r2=374925&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/network_io/win32/sendrecv.c (original)
+++ apr/apr/branches/1.2.x/network_io/win32/sendrecv.c Sat Feb  4 13:03:44 2006
@@ -55,6 +55,7 @@
 #endif
     if (rv == SOCKET_ERROR) {
         lasterror = apr_get_netos_error();
+        *len = 0;
         return lasterror;
     }