]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2018-16853: Do not segfault if client is not set
authorAndreas Schneider <asn@samba.org>
Wed, 28 Sep 2016 05:22:32 +0000 (07:22 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 7 Dec 2018 10:39:37 +0000 (11:39 +0100)
This can be triggered with FAST but we don't support this yet.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13571

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/mit-kdb/kdb_samba_policies.c

index 4364461302c29f936e15873dce03553f927c76b1..0b1265980b1fd97728647f3a98aca0071a92af1e 100644 (file)
@@ -445,6 +445,14 @@ void kdb_samba_db_audit_as_req(krb5_context context,
 {
        struct mit_samba_context *mit_ctx;
 
+       /*
+        * FIXME: This segfaulted with a FAST test
+        * FIND_FAST: <unknown client> for <unknown server>, Unknown FAST armor type 0
+        */
+       if (client == NULL) {
+               return;
+       }
+
        mit_ctx = ks_get_context(context);
        if (mit_ctx == NULL) {
                return;