Check if input string to aToIPAddr is null

This commit is contained in:
Matic Pogacnik
2020-08-06 08:36:23 +02:00
committed by Michael Davidsaver
parent a808e3c790
commit 5b37663bcb

View File

@@ -90,6 +90,10 @@ aToIPAddr( const char *pAddrString, unsigned short defaultPort,
unsigned port;
struct in_addr ina;
if ( pAddrString == NULL ) {
return -1;
}
/*
* dotted ip addresses
*/