From 355c1699891ac7fd2a5c018c8176ed2472a5161d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 22 Jul 2005 04:32:59 +0000 Subject: r8703: cope with null string in interpret_addr() (This used to be commit ff156f7aae29045edd898635d16d141b3e848f3f) --- source4/lib/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit