From: Jeffrey Altman Date: Tue, 21 Aug 2007 09:27:37 +0000 (+0000) Subject: viced-remove-asserts-20070821 X-Git-Tag: BP-openafs-windows-kdfs-ifs~541 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=d0f62da48417989040986a0bd6539d9696616229;p=packages%2Fo%2Fopenafs.git viced-remove-asserts-20070821 remove asserts testing the number of alternate interfaces. --- diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index bdbd142c6..f879b5dc6 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -7458,11 +7458,9 @@ SRXAFS_CallBackRxConnAddr (struct rx_call * acall, afs_int32 *addr) if ( !thost->interface ) goto Bad_CallBackRxConnAddr; - assert(thost->interface->numberOfInterfaces > 0 ); - /* the only address is the primary interface */ /* can't change when there's only 1 address, anyway */ - if ( thost->interface->numberOfInterfaces == 1 ) + if ( thost->interface->numberOfInterfaces <= 1 ) goto Bad_CallBackRxConnAddr; /* initialise a security object only once */ diff --git a/src/viced/callback.c b/src/viced/callback.c index 152bb8224..0a8075a80 100644 --- a/src/viced/callback.c +++ b/src/viced/callback.c @@ -2991,11 +2991,9 @@ MultiProbeAlternateAddress_r(struct host *host) if (!host->interface) return 1; /* failure */ - assert(host->interface->numberOfInterfaces > 0); - /* the only address is the primary interface */ - if (host->interface->numberOfInterfaces == 1) - return 1; /* failure */ + if (host->interface->numberOfInterfaces <= 1) + return 1; /* failure */ /* initialise a security object only once */ if (!sc)