diff options
author | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2006-06-14 16:23:02 +0000 |
---|---|---|
committer | Gregory Neil Shapiro <gshapiro@FreeBSD.org> | 2006-06-14 16:23:02 +0000 |
commit | af9557fdd1de47bcfff61cccba2930e93ec4e69b (patch) | |
tree | 6f072dad611b3ce7872008bf9d66b23a34c28039 /contrib/sendmail/src/domain.c | |
parent | 4e4196cb7454f47341efebe4e0a17f1b8cd534c7 (diff) |
Notes
Diffstat (limited to 'contrib/sendmail/src/domain.c')
-rw-r--r-- | contrib/sendmail/src/domain.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/contrib/sendmail/src/domain.c b/contrib/sendmail/src/domain.c index e12baad84d9c7..81e64d1e5967d 100644 --- a/contrib/sendmail/src/domain.c +++ b/contrib/sendmail/src/domain.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998-2004 Sendmail, Inc. and its suppliers. + * Copyright (c) 1998-2004, 2006 Sendmail, Inc. and its suppliers. * All rights reserved. * Copyright (c) 1986, 1995-1997 Eric P. Allman. All rights reserved. * Copyright (c) 1988, 1993 @@ -14,9 +14,9 @@ #include <sendmail.h> #if NAMED_BIND -SM_RCSID("@(#)$Id: domain.c,v 8.197 2005/03/04 00:54:42 ca Exp $ (with name server)") +SM_RCSID("@(#)$Id: domain.c,v 8.199 2006/04/18 00:00:34 ca Exp $ (with name server)") #else /* NAMED_BIND */ -SM_RCSID("@(#)$Id: domain.c,v 8.197 2005/03/04 00:54:42 ca Exp $ (without name server)") +SM_RCSID("@(#)$Id: domain.c,v 8.199 2006/04/18 00:00:34 ca Exp $ (without name server)") #endif /* NAMED_BIND */ #if NAMED_BIND @@ -521,7 +521,7 @@ punt: } # if NETINET6 freehostent(h); - hp = NULL; + h = NULL; # endif /* NETINET6 */ } if (strlen(host) >= sizeof MXHostBuf) @@ -972,11 +972,7 @@ nexttype: /* avoid problems after truncation in tcp packets */ if (ret > sizeof(answer)) ret = sizeof(answer); - if (ret < 0) - { - *statp = EX_SOFTWARE; - return false; - } + SM_ASSERT(ret >= 0); /* ** Appear to have a match. Confirm it by searching for A or |