|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r66022 - trunk/boost/asio/detail/impl
From: chris_at_[hidden]
Date: 2010-10-16 09:15:55
Author: chris_kohlhoff
Date: 2010-10-16 09:15:51 EDT (Sat, 16 Oct 2010)
New Revision: 66022
URL: http://svn.boost.org/trac/boost/changeset/66022
Log:
Pass NULL for servname rather than empty string, as per POSIX. Refs #4690.
Text files modified:
trunk/boost/asio/detail/impl/socket_ops.ipp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
Modified: trunk/boost/asio/detail/impl/socket_ops.ipp
==============================================================================
--- trunk/boost/asio/detail/impl/socket_ops.ipp (original)
+++ trunk/boost/asio/detail/impl/socket_ops.ipp 2010-10-16 09:15:51 EDT (Sat, 16 Oct 2010)
@@ -2669,6 +2669,7 @@
addrinfo_type** result, boost::system::error_code& ec)
{
host = (host && *host) ? host : 0;
+ service = (service && *service) ? service : 0;
clear_last_error();
#if defined(BOOST_WINDOWS) || defined(__CYGWIN__)
# if defined(_WIN32_WINNT) && (_WIN32_WINNT >= 0x0501) || defined(UNDER_CE)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk