diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-28 02:43:57 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-02-28 02:43:57 +0000 |
commit | dcf623472bc9963a885e9117fe0db7567e4bf4f0 (patch) | |
tree | 03a753524b111df1ba3f86da7fcb61c5a1e52c1a /gnu/usr.sbin/sendmail/libmilter/sm_gethost.c | |
parent | 3ac8563baefed0d06c236cb4e2f9cede71e6c959 (diff) |
Update to sendmail 8.11.3. This is a maintenance release which
contains bug fixes for problems found after 8.11.2 was released.
Systems which use buffered file I/O (like OpenBSD) were not properly
fsync()'ing the data (df) file. Although there is little chance
of data loss, this is an important fix.
Diffstat (limited to 'gnu/usr.sbin/sendmail/libmilter/sm_gethost.c')
-rw-r--r-- | gnu/usr.sbin/sendmail/libmilter/sm_gethost.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/usr.sbin/sendmail/libmilter/sm_gethost.c b/gnu/usr.sbin/sendmail/libmilter/sm_gethost.c index b7de9775e08..ce2813395fd 100644 --- a/gnu/usr.sbin/sendmail/libmilter/sm_gethost.c +++ b/gnu/usr.sbin/sendmail/libmilter/sm_gethost.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2000 Sendmail, Inc. and its suppliers. + * Copyright (c) 1999-2001 Sendmail, Inc. and its suppliers. * All rights reserved. * * By using this file, you agree to the terms and conditions set @@ -9,7 +9,7 @@ */ #ifndef lint -static char id[] = "@(#)$Sendmail: sm_gethost.c,v 8.7.8.4 2000/12/19 04:26:33 gshapiro Exp $"; +static char id[] = "@(#)$Sendmail: sm_gethost.c,v 8.7.8.6 2001/02/14 04:07:23 gshapiro Exp $"; #endif /* ! lint */ #if _FFR_MILTER @@ -54,7 +54,7 @@ getipnodebyname(name, family, flags, err) resv6 = bitset(RES_USE_INET6, _res.options); _res.options |= RES_USE_INET6; } - h_errno = 0; + SM_SET_H_ERRNO(0); h = gethostbyname(name); *err = h_errno; if (family == AF_INET6 && !resv6) @@ -102,7 +102,7 @@ mi_gethostbyname(name, family) # if NETINET6 h = getipnodebyname(name, family, AI_V4MAPPED|AI_ALL, &err); - h_errno = err; + SM_SET_H_ERRNO(err); # else /* NETINET6 */ h = gethostbyname(name); # endif /* NETINET6 */ |