Update of /cvsroot/boost/boost/boost/asio/detail
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv28499

Modified Files:
        socket_ops.hpp 
Log Message:
Need to clear error after successful call of WSAAddressToString or
WSAStringToAddress.


Index: socket_ops.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/asio/detail/socket_ops.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- socket_ops.hpp      8 Nov 2006 05:32:12 -0000       1.5
+++ socket_ops.hpp      16 Nov 2006 11:49:11 -0000      1.6
@@ -514,6 +514,7 @@
       sockaddr_in4_type* ipv4_address =
         reinterpret_cast<sockaddr_in4_type*>(&address);
       memcpy(dest, &ipv4_address->sin_addr, sizeof(in4_addr_type));
+      clear_error(ec);
     }
     else if (strcmp(src, "255.255.255.255") == 0)
     {
@@ -529,6 +530,7 @@
       memcpy(dest, &ipv6_address->sin6_addr, sizeof(in6_addr_type));
       if (scope_id)
         *scope_id = ipv6_address->sin6_scope_id;
+      clear_error(ec);
     }
   }
 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to