summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_netdb.inl
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2009-07-29 02:37:57 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2009-07-29 02:37:57 +0000
commit6a8486a912245265fa9ea68e61e8cfd0d5a2e608 (patch)
treece282f6c90a5aca728f996af4f36704f60425315 /ACE/ace/OS_NS_netdb.inl
parent5eac10b620678b5ddbe04a0455880d6bcbd81bc9 (diff)
downloadATCD-6a8486a912245265fa9ea68e61e8cfd0d5a2e608.tar.gz
ChangeLogTag:Wed
Diffstat (limited to 'ACE/ace/OS_NS_netdb.inl')
-rw-r--r--ACE/ace/OS_NS_netdb.inl10
1 files changed, 7 insertions, 3 deletions
diff --git a/ACE/ace/OS_NS_netdb.inl b/ACE/ace/OS_NS_netdb.inl
index f86db157149..692b2f8f132 100644
--- a/ACE/ace/OS_NS_netdb.inl
+++ b/ACE/ace/OS_NS_netdb.inl
@@ -410,12 +410,16 @@ ACE_OS::gethostbyname_r (const char *name,
# else
ACE_UNUSED_ARG (result);
ACE_UNUSED_ARG (buffer);
- ACE_UNUSED_ARG (h_errnop);
- //FUZZ: disable check_for_lack_ACE_OS
+ // FUZZ: disable check_for_lack_ACE_OS
+ struct hostend *result2 = 0;
ACE_SOCKCALL_RETURN (::gethostbyname (name),
struct hostent *,
- 0);
+ 0,
+ result2);
+ if (result2 == 0 && h_errnop)
+ *h_errnop = errno;
+ return result2;
//FUZZ: enable check_for_lack_ACE_OS
# endif /* defined (ACE_HAS_REENTRANT_FUNCTIONS) && !defined (UNIXWARE) */
}