diff --git a/modules/libcom/src/misc/aToIPAddr.c b/modules/libcom/src/misc/aToIPAddr.c index cf8b8775f..4bb2353f7 100644 --- a/modules/libcom/src/misc/aToIPAddr.c +++ b/modules/libcom/src/misc/aToIPAddr.c @@ -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 */