add a test for a LSA lookupnames with a NULL string
authorAndrew Tridgell <tridge@samba.org>
Tue, 30 Sep 2008 21:03:01 +0000 (14:03 -0700)
committerAndrew Tridgell <tridge@samba.org>
Tue, 30 Sep 2008 21:03:01 +0000 (14:03 -0700)
source4/torture/rpc/lsa.c

index af5ee4f6e1f423f10924d015968c272dcc737827..45f67afd699fd0583dd1e23e7131927aa440a9fc 100644 (file)
@@ -222,12 +222,13 @@ static bool test_LookupNames_bogus(struct dcerpc_pipe *p,
        NTSTATUS status;
        int i;
 
-       struct lsa_TranslatedName name;
+       struct lsa_TranslatedName name[2];
        struct lsa_TransNameArray tnames;
 
-       tnames.names = &name;
-       tnames.count = 1;
-       name.name.string = "NT AUTHORITY\\BOGUS";
+       tnames.names = name;
+       tnames.count = 2;
+       name[0].name.string = "NT AUTHORITY\\BOGUS";
+       name[1].name.string = NULL;
 
        printf("\nTesting LookupNames with bogus names\n");