Check if input string to aToIPAddr is null
This commit is contained in:
committed by
Michael Davidsaver
parent
a808e3c790
commit
5b37663bcb
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user