mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:rpcclient fix NULL - deref caused by misuse of chgpasswd3
Passing wrong number of arguments to chgpasswd3 will cause rpcclient to crash. Signed-off-by: Andrew Walker <awalker@ixsystems.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Oct 29 03:31:56 UTC 2020 on sn-devel-184
This commit is contained in:
parent
5f92ec6988
commit
cc4901123d
@ -3033,7 +3033,7 @@ static NTSTATUS cmd_samr_chgpasswd3(struct rpc_pipe_client *cli,
|
|||||||
struct userPwdChangeFailureInformation *reject = NULL;
|
struct userPwdChangeFailureInformation *reject = NULL;
|
||||||
struct dcerpc_binding_handle *b = cli->binding_handle;
|
struct dcerpc_binding_handle *b = cli->binding_handle;
|
||||||
|
|
||||||
if (argc < 3) {
|
if (argc < 4) {
|
||||||
printf("Usage: %s username oldpass newpass\n", argv[0]);
|
printf("Usage: %s username oldpass newpass\n", argv[0]);
|
||||||
return NT_STATUS_INVALID_PARAMETER;
|
return NT_STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user