[libfko] added defensive NULL check for is_valid_ipv4_addr()

This commit is contained in:
Michael Rash 2013-12-04 23:11:11 -05:00
parent e0114e60c2
commit 79f0cb8986

View File

@ -124,6 +124,9 @@ is_valid_ipv4_addr(const char * const ip_str)
struct in_addr in;
#endif
if(ip_str == NULL)
return 0;
while(*ndx != '\0')
{
char_ctr++;