git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d9ea91
)
Fix bug 5840: Segfault in "rpcclient lsaaddacctrights"
author
Volker Lendecke
<vl@samba.org>
Wed, 22 Oct 2008 12:26:05 +0000
(14:26 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 22 Oct 2008 12:31:40 +0000
(14:31 +0200)
source3/rpcclient/cmd_lsarpc.c
patch
|
blob
|
history
diff --git
a/source3/rpcclient/cmd_lsarpc.c
b/source3/rpcclient/cmd_lsarpc.c
index aa8662ce9dad55f166aaf0cbec45f9bc0c47eb3e..6424f1b3af249ed3e752d727311871141a8576e8 100644
(file)
--- a/
source3/rpcclient/cmd_lsarpc.c
+++ b/
source3/rpcclient/cmd_lsarpc.c
@@
-789,7
+789,7
@@
static NTSTATUS cmd_lsa_add_acct_rights(struct rpc_pipe_client *cli,
return NT_STATUS_NO_MEMORY;
}
- for (i=0; i<argc-
1
; i++) {
+ for (i=0; i<argc-
2
; i++) {
init_lsa_StringLarge(&rights.names[i], argv[i+2]);
}