r8703: cope with null string in interpret_addr()
authorAndrew Tridgell <tridge@samba.org>
Fri, 22 Jul 2005 04:32:59 +0000 (04:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:56 +0000 (13:29 -0500)
(This used to be commit ff156f7aae29045edd898635d16d141b3e848f3f)

source4/lib/util.c

index 03ae86422fdc7d7e810c598df562385267e16cd2..173d755bec974c88992138bb4ce4cc79d97f43f1 100644 (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;
        }