From: Todd C. Miller Date: Sat, 13 Aug 1994 21:08:53 +0000 (+0000) Subject: nwo check for interfaces == NULL X-Git-Tag: SUDO_1_3_1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e9114229c340fbf63f2325aaa34222d1ff29230f;p=sudo nwo check for interfaces == NULL --- diff --git a/parse.c b/parse.c index fb7c6d796..d804d8f6c 100644 --- a/parse.c +++ b/parse.c @@ -507,7 +507,7 @@ static int hostcmp(target) { /* if target an ip address/network or a hostname? */ - if (isdigit(*target)) { + if (interfaces != NULL && isdigit(*target)) { struct in_addr target_addr; /* inet addr version of target */ int i; /* loop counter */