mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Only assign argv[1] after the argc check, thanks Tim!
This commit is contained in:
parent
df42719ca3
commit
0b6f21841e
@ -2593,7 +2593,7 @@ static WERROR cmd_spoolss_printercmp(struct rpc_pipe_client *cli,
|
||||
TALLOC_CTX *mem_ctx, int argc,
|
||||
const char **argv)
|
||||
{
|
||||
const char *printername = argv[1];
|
||||
const char *printername;
|
||||
char *printername_path = NULL;
|
||||
struct cli_state *cli_server2 = NULL;
|
||||
struct rpc_pipe_client *cli2 = NULL;
|
||||
@ -2606,6 +2606,8 @@ static WERROR cmd_spoolss_printercmp(struct rpc_pipe_client *cli,
|
||||
return WERR_OK;
|
||||
}
|
||||
|
||||
printername = argv[1];
|
||||
|
||||
/* first get the connection to the remote server */
|
||||
|
||||
nt_status = cli_full_connection(&cli_server2, global_myname(), argv[2],
|
||||
|
Loading…
Reference in New Issue
Block a user