1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r8703: cope with null string in interpret_addr()

This commit is contained in:
Andrew Tridgell 2005-07-22 04:32:59 +00:00 committed by Gerald (Jerry) Carter
parent 3c12b46e32
commit ff156f7aae

View File

@ -332,7 +332,7 @@ uint32_t interpret_addr(const char *str)
struct hostent *hp;
uint32_t res;
if (str == NULL ||
if (str == NULL || *str == 0 ||
strcmp(str,"0.0.0.0") == 0) {
return 0;
}