]> arthur.barton.de Git - netatalk.git/commitdiff
Fix for SourceForge bugs #471911 and #495260. Overzealous argument validity
authorsrittau <srittau>
Sat, 29 Dec 2001 03:17:45 +0000 (03:17 +0000)
committersrittau <srittau>
Sat, 29 Dec 2001 03:17:45 +0000 (03:17 +0000)
checking.

libatalk/util/getiface.c

index 3259510b28698113ed00ccf9feeecf2b5d72205b..82fe8dbfc2f067bbfe1982b63b388448007dcb68 100644 (file)
@@ -80,7 +80,7 @@ static int getifaces(const int sockfd, char ***list, int *length)
     int                        ifrsize, i = 0;
        char **new;
 
-    if (!list || *length < 1)
+    if (!list)
       return 0;
 
     memset( &ifc, 0, sizeof( struct ifconf ));