s3: libsmb: Pass in TALLOC_CTX * parameter to resolve_ads() instead of creating one...
authorJeremy Allison <jra@samba.org>
Tue, 21 Jul 2020 00:59:20 +0000 (17:59 -0700)
committerIsaac Boukris <iboukris@sn-devel-184>
Tue, 4 Aug 2020 08:51:42 +0000 (08:51 +0000)
commit97781fe0aeb8d5e000954d23543c450322962ab6
tree6760914f1e4054036b11c0f1f0793b0ff8af2bd4
parent2297c883b52ddda7d8a6a143f632ffbef7fe1a10
s3: libsmb: Pass in TALLOC_CTX * parameter to resolve_ads() instead of creating one internally.

Pass in talloc_tos() to make it match the other resolve_XXX() functions.

No memory leaks as this is used for transient data and is cleaned up
when the calling frame in internal_resolve_name() is destroyed.

Preparing to have it return a talloc'ed struct sockaddr_storage array
rather than a malloc'ed struct ip_service array.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
source3/libsmb/namequery.c