util_sock: Fix memcache bug in get_mydnsfullname.
authorKai Blin <kai@samba.org>
Mon, 21 Jan 2008 12:18:38 +0000 (13:18 +0100)
committerKai Blin <kai@samba.org>
Mon, 21 Jan 2008 12:28:06 +0000 (13:28 +0100)
commit1db41ff52565e9f336a22fb9ffd80d51677e023b
tree904ca60be072d011d1d829ea557ab1e5392c5464
parent0b85f7173d0770f8d9a0bac9e43355eb45bc181f
util_sock: Fix memcache bug in get_mydnsfullname.

get_mydnsfullname relied on memcache_add(); memcache_lookup() working.
When run from ntlm_auth, the global_cache variable in memcache is NULL, so
the add and lookup both fail. In that case, just return the result of the
getaddrinfo call.

Jeremy, please check.
source/lib/util_sock.c