Merged
add pscstr check #2227
LeewisAdd on May 19
add pscstr check #2227
Merged
LeewisAdd on May 19
Merged fromDeleted :masterintocann/hcommmaster
Total: 1 files changed+1-1
@@ -124,7 +124,7 @@ char *VOS_StrChr(const char *pscStr, const char scChar)
124 124 
125BOOL VOS_StrToIpAddrCheckValid(const char *pscStr, uint32_t *pulIpAddr)125BOOL VOS_StrToIpAddrCheckValid(const char *pscStr, uint32_t *pulIpAddr)
126{126{
127- if (pscStr == VOS_NULL_PTR) {127+ if (pscStr == VOS_NULL_PTR || (strlen(pscStr) == 0)) {
128 return FALSE;128 return FALSE;
129 }129 }
130 130