r8676: attribute lists in ldb searches must be NULL terminated
authorAndrew Tridgell <tridge@samba.org>
Thu, 21 Jul 2005 10:57:52 +0000 (10:57 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:53 +0000 (13:29 -0500)
this is what was causing the panic on the s390 box

source/auth/auth_sam.c

index 3318238fda573c819519d55be60338bd81b070ab..7f5f41e58c6e45c514d76a16e7e9da864a519d11 100644 (file)
@@ -211,7 +211,7 @@ static NTSTATUS authsam_search_account(TALLOC_CTX *mem_ctx, struct ldb_context *
                               NULL,
        };
 
-       const char *domain_attrs[] =  {"nETBIOSName", "nCName"};
+       const char *domain_attrs[] =  {"nETBIOSName", "nCName", NULL};
 
        if (domain_name) {
                /* find the domain's DN */