diff options
author | Craig Tiller <ctiller@google.com> | 2016-06-02 17:26:39 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-06-02 17:26:39 -0700 |
commit | 6238e5bf40f5771b52a41fe7e6d1a755e91c9f01 (patch) | |
tree | 01891b796d84b3b5a94325304c5af5a63d25d586 /src/core/lib/iomgr | |
parent | a65475c9f32c4ec1abf2c888012a7d4e346ddecc (diff) |
Fix bad return value
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r-- | src/core/lib/iomgr/socket_utils_common_posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/socket_utils_common_posix.c b/src/core/lib/iomgr/socket_utils_common_posix.c index d1721c910c..7e2fd9fccf 100644 --- a/src/core/lib/iomgr/socket_utils_common_posix.c +++ b/src/core/lib/iomgr/socket_utils_common_posix.c @@ -236,7 +236,7 @@ grpc_error *grpc_create_dualstack_socket(const struct sockaddr *addr, int type, /* If this isn't an IPv4 address, then return whatever we've got. */ if (!grpc_sockaddr_is_v4mapped(addr, NULL)) { *dsmode = GRPC_DSMODE_IPV6; - return GRPC_ERROR_NONE; + return *newfd >= 0 ? GRPC_ERROR_NONE : GRPC_OS_ERROR(errno, "socket"); } /* Fall back to AF_INET. */ if (*newfd >= 0) { |