summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-30 14:03:01 -0700
committerAndrew Tridgell <tridge@samba.org>2008-09-30 14:03:01 -0700
commit14378d7c4cfff171e7c005c210abe253a2d7dea3 (patch)
tree73f377ad95c8d780e5f015aea33a8c6b62abeb7c
parent2c978bbfa92b7fe29c17e40ad6d8059814b78399 (diff)
downloadsamba-14378d7c4cfff171e7c005c210abe253a2d7dea3.tar.gz
samba-14378d7c4cfff171e7c005c210abe253a2d7dea3.tar.bz2
samba-14378d7c4cfff171e7c005c210abe253a2d7dea3.zip
add a test for a LSA lookupnames with a NULL string
-rw-r--r--source4/torture/rpc/lsa.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/torture/rpc/lsa.c b/source4/torture/rpc/lsa.c
index af5ee4f6e1..45f67afd69 100644
--- a/source4/torture/rpc/lsa.c
+++ b/source4/torture/rpc/lsa.c
@@ -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");