git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2c978bb
)
add a test for a LSA lookupnames with a NULL string
author
Andrew Tridgell
<tridge@samba.org>
Tue, 30 Sep 2008 21:03:01 +0000
(14:03 -0700)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 30 Sep 2008 21:03:01 +0000
(14:03 -0700)
source4/torture/rpc/lsa.c
patch
|
blob
|
history
diff --git
a/source4/torture/rpc/lsa.c
b/source4/torture/rpc/lsa.c
index af5ee4f6e1f423f10924d015968c272dcc737827..45f67afd699fd0583dd1e23e7131927aa440a9fc 100644
(file)
--- 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");