]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: libsmb: Cleanup - in internal_resolve_name() only write the out parameters on...
authorJeremy Allison <jra@samba.org>
Wed, 9 Sep 2020 17:58:20 +0000 (10:58 -0700)
committerNoel Power <npower@samba.org>
Tue, 15 Sep 2020 11:33:35 +0000 (11:33 +0000)
All callers already correctly initialize them.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Tue Sep 15 11:33:35 UTC 2020 on sn-devel-184

source3/libsmb/namequery.c

index 1c7bbfeb15172e18c77db3c97fddb887e555b03d..bf53e01bfb73cecb0c058c0020db689c59723a9a 100644 (file)
@@ -3175,9 +3175,6 @@ NTSTATUS internal_resolve_name(TALLOC_CTX *ctx,
        struct samba_sockaddr *sa_list = NULL;
        TALLOC_CTX *frame = talloc_stackframe();
 
-       *return_salist = NULL;
-       *return_count = 0;
-
        DBG_DEBUG("looking up %s#%x (sitename %s)\n",
                name, name_type, sitename ? sitename : "(null)");