]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libsmb: fix lpcfg_gensec_settings() no memory check in auth_generic_client_prepare()
authorStefan Metzmacher <metze@samba.org>
Tue, 12 Mar 2024 10:51:25 +0000 (11:51 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 14 May 2024 10:18:31 +0000 (10:18 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/auth_generic.c

index 527b51900d8cf644620fc22c9f4e29db33a2b2d1..b4f283f388a84a6c6e5d78911f8df1f156d0125b 100644 (file)
@@ -80,7 +80,7 @@ NTSTATUS auth_generic_client_prepare(TALLOC_CTX *mem_ctx, struct auth_generic_st
        }
 
        gensec_settings = lpcfg_gensec_settings(ans, lp_ctx);
-       if (lp_ctx == NULL) {
+       if (gensec_settings == NULL) {
                DEBUG(10, ("lpcfg_gensec_settings failed\n"));
                TALLOC_FREE(ans);
                return NT_STATUS_NO_MEMORY;