]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-viced-remove-asserts-20070821
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 21 Aug 2007 09:28:37 +0000 (09:28 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 21 Aug 2007 09:28:37 +0000 (09:28 +0000)
remove asserts testing the number of alternate interfaces.

(cherry picked from commit d0f62da48417989040986a0bd6539d9696616229)

src/viced/afsfileprocs.c
src/viced/callback.c

index a00ffc64bd34a565e4323584e097d2dd124cfe36..e55e87b554626158dfd3d1a410ecdf8c3a200f76 100644 (file)
@@ -7573,11 +7573,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 */
index ec7f0d478d301c37a20940da7b96ae777113ca7e..173dd1e7d77e3d6e3b2a73c67b28981bb0c9ef1e 100644 (file)
@@ -2134,11 +2134,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)