CVE-2021-20251: s4:auth: fix use after free in authsam_logon_success_accounting()
[abartlet/samba-autobuild/.git] / source4 / auth / ntlm / auth_sam.c
index 9c4790c7c3f54985854cff5c8eaf683b5efaf140..384f98a5b40082a477471bc84cbe847148edb26f 100644 (file)
@@ -589,6 +589,7 @@ static NTSTATUS authsam_authenticate(struct auth4_context *auth_context,
        nt_status = authsam_logon_success_accounting(auth_context->sam_ctx,
                                                     msg, domain_dn,
                                                     interactive,
+                                                    tmp_ctx,
                                                     &send_to_sam);
 
        if (send_to_sam != NULL) {