bugfix: Skipping readlist, if readlist_proc sicceeded is not a
authorBernd Eckenfels <net-tools@lina.inka.de>
Sat, 28 Jun 2003 02:03:31 +0000 (02:03 +0000)
committerBernd Eckenfels <net-tools@lina.inka.de>
Sat, 28 Jun 2003 02:03:31 +0000 (02:03 +0000)
good idea. I Rewrote that section for clarity. This is also
present in the 1.60-8 debian package, which  fixed #197582 and
#197924.

lib/interface.c

index 913cca2..ee0b04b 100644 (file)
@@ -7,7 +7,7 @@
    8/2000  Andi Kleen make the list operations a bit more efficient.
    People are crazy enough to use thousands of aliases now.
 
-   $Id: interface.c,v 1.28 2003/05/29 02:09:14 ecki Exp $
+   $Id: interface.c,v 1.29 2003/06/28 02:03:31 ecki Exp $
  */
 
 #include "config.h"
@@ -382,13 +382,12 @@ int if_readlist(void)
     /* caller will/should check not to call this too often 
      *   (i.e. only if if_list_all == 0 
      */
-    int err = if_readlist_proc(NULL); 
+    int err = 0;
 
-    if (err)
-       err = if_readconf();
-           
-    if(!err)
-       if_list_all = 1;
+    err |= if_readlist_proc(NULL); 
+    err |= if_readconf();
+
+    if_list_all = 1;
 
     return err;
 }