]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: libsmb: Cleanup - Make ipstr_list_make() talloc rather than malloc.
authorJeremy Allison <jra@samba.org>
Wed, 15 Jul 2020 22:02:02 +0000 (15:02 -0700)
committerVolker Lendecke <vl@samba.org>
Thu, 16 Jul 2020 08:16:31 +0000 (08:16 +0000)
commit8ea51f4135d21f0cf70215521818eeb55e7bdbaa
tree433a87f3e8e7b14b243ac1aaad47f9c564edbcd5
parent1d712add994f8426a90589788be53c1ce2e54c17
s3: libsmb: Cleanup - Make ipstr_list_make() talloc rather than malloc.

Remove the excessive and unneeded ipstr_list_add() function,
fold it into ipstr_list_make() to make it much clearer what
we're doing.

The only use of MALLOC now is in ipstr_list_parse() returned
by namecache_fetch(). We need to fix the caller before
we can move that to talloc. As that is used inside internal_resolve_name()
which is designed to return a MALLOC'ed ip list from all
name resolution mechanisms leave that fix for another day.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jul 16 08:16:31 UTC 2020 on sn-devel-184
source3/libsmb/namecache.c