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
struct userPwdChangeFailureInformation *reject = NULL;
struct dcerpc_binding_handle *b = cli->binding_handle;
- if (argc < 3) {
+ if (argc < 4) {
printf("Usage: %s username oldpass newpass\n", argv[0]);
return NT_STATUS_INVALID_PARAMETER;
}