[libfko] added defensive NULL check for is_valid_ipv4_addr()
This commit is contained in:
parent
e0114e60c2
commit
79f0cb8986
@ -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++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user