Return NULL in sitename_fetch() if gencache_init() fails. Not false
authorGerald W. Carter <jerry@samba.org>
Sat, 28 Jun 2008 13:35:07 +0000 (09:35 -0400)
committerGerald W. Carter <jerry@samba.org>
Sat, 28 Jun 2008 13:36:30 +0000 (09:36 -0400)
(This used to be commit 8704c2ab37479236788c0a99465d73643d3d555a)

source3/libads/dns.c

index fe0e6d3e86dbd3bc298351ee4e6c322b0d9ee393..3a9e8496685b165e40b1166931f99c793e4f48e0 100644 (file)
@@ -796,7 +796,7 @@ char *sitename_fetch(const char *realm)
        char *key;
 
        if (!gencache_init()) {
-               return False;
+               return NULL;
        }
 
        if (!realm || (strlen(realm) == 0)) {