mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Fix bug in tdb_fetch tidyup.
Jeremy.
(This used to be commit 88d081e064
)
This commit is contained in:
parent
e8ac5004b0
commit
44c8c16546
@ -196,7 +196,6 @@ BOOL namecache_fetch(const char *name, int name_type, struct in_addr **ip_list,
|
||||
|
||||
tdb_delete(namecache_tdb, key);
|
||||
|
||||
SAFE_FREE(value.dptr);
|
||||
value = tdb_null;
|
||||
|
||||
goto done;
|
||||
@ -211,7 +210,6 @@ BOOL namecache_fetch(const char *name, int name_type, struct in_addr **ip_list,
|
||||
|
||||
tdb_delete(namecache_tdb, key);
|
||||
|
||||
SAFE_FREE(value.dptr);
|
||||
value = tdb_null;
|
||||
|
||||
goto done;
|
||||
@ -241,7 +239,7 @@ BOOL namecache_fetch(const char *name, int name_type, struct in_addr **ip_list,
|
||||
|
||||
done:
|
||||
SAFE_FREE(key.dptr);
|
||||
SAFE_FREE(value.dptr);
|
||||
SAFE_FREE(data);
|
||||
|
||||
return value.dsize > 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user