apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r374926 - /apr/apr/branches/0.9.x/network_io/win32/sendrecv.c
Date Sat, 04 Feb 2006 21:04:03 GMT
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 <c.g.demetriou gmail.com>
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;
     }
 



Mime
View raw message