search for: force_lookup

Displaying 1 result from an estimated 1 matches for "force_lookup".

2009 Jun 17
0
Samba 3.3.5 problem with hostnames in allow hosts list
...in get_peer_name in lib/util_sock.c This routine always returns whatever is in the memcache and never seems to actually perform the sys_getnameinfo call. I don't understand the logic in get_peer_name: nc is declared at the top of the function (line 1816), then if get_peer_name is called with force_lookup==true, the next thing that happens is a lookup_nc(&nc) (line 1840). The bit I don't understand is that nc is not initialised between being declared and the lookup_nc call being performed. To my mind this would lead to undefined results which might explain why sys_getnameinfo is never calle...