git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82ec832
)
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:26:14 +0000
(14:26 +0200)
source/rpcclient/cmd_lsarpc.c
patch
|
blob
|
history
diff --git
a/source/rpcclient/cmd_lsarpc.c
b/source/rpcclient/cmd_lsarpc.c
index 0d530ceaf22ae75292a0c27948e4ebc7f2386cce..befb0f0407927a76bd691f1cab4b14b3aa33d7e4 100644
(file)
--- a/
source/rpcclient/cmd_lsarpc.c
+++ b/
source/rpcclient/cmd_lsarpc.c
@@
-791,7
+791,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]);
}