don't leave rcode uninitialized if everything is OK
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 25 May 1995 07:23:27 +0000 (23:23 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Thu, 25 May 1995 07:23:27 +0000 (23:23 -0800)
SCCS-vsn: usr.sbin/sendmail/src/domain.c 8.40

usr/src/usr.sbin/sendmail/src/domain.c

index 698ff72..cb0f52c 100644 (file)
@@ -10,9 +10,9 @@
 
 #ifndef lint
 #if NAMED_BIND
 
 #ifndef lint
 #if NAMED_BIND
-static char sccsid[] = "@(#)domain.c   8.39 (Berkeley) %G% (with name server)";
+static char sccsid[] = "@(#)domain.c   8.40 (Berkeley) %G% (with name server)";
 #else
 #else
-static char sccsid[] = "@(#)domain.c   8.39 (Berkeley) %G% (without name server)";
+static char sccsid[] = "@(#)domain.c   8.40 (Berkeley) %G% (without name server)";
 #endif
 #endif /* not lint */
 
 #endif
 #endif /* not lint */
 
@@ -114,6 +114,8 @@ getmxrr(host, mxhosts, droplocalhost, rcode)
                firsttime = FALSE;
        }
 
                firsttime = FALSE;
        }
 
+       *rcode = EX_OK;
+
        /* efficiency hack -- numeric or non-MX lookups */
        if (host[0] == '[')
                goto punt;
        /* efficiency hack -- numeric or non-MX lookups */
        if (host[0] == '[')
                goto punt;