Check if input string to aToIPAddr is null
This commit is contained in:
1 parent
a808e3c790
commit
5b37663bcb
1 file changed
+4
@@ -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