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:
parent
3c12b46e32
commit
ff156f7aae
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user