summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-22 04:32:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:56 -0500
commit355c1699891ac7fd2a5c018c8176ed2472a5161d (patch)
treebaf311e6eff87366f847e3b7139a41922d4bd68e /source4
parent4d28d20a02da7b2174e7f3f819565c55be681262 (diff)
downloadsamba-355c1699891ac7fd2a5c018c8176ed2472a5161d.tar.gz
samba-355c1699891ac7fd2a5c018c8176ed2472a5161d.tar.bz2
samba-355c1699891ac7fd2a5c018c8176ed2472a5161d.zip
r8703: cope with null string in interpret_addr()
(This used to be commit ff156f7aae29045edd898635d16d141b3e848f3f)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/util.c b/source4/lib/util.c
index 03ae86422f..173d755bec 100644
--- a/source4/lib/util.c
+++ b/source4/lib/util.c
@@ -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;
}