Ignore --protect-args when already sent by client
authorJeriko One <jeriko.one@gmx.us>
Mon, 20 Nov 2017 22:42:30 +0000 (14:42 -0800)
committerWayne Davison <wayned@samba.org>
Wed, 10 Jan 2018 01:51:30 +0000 (17:51 -0800)
commit7706303828fcde524222babb2833864a4bd09e07
treeeb67b7e243bbb8b7e07f53b11aff467d590e39ab
parentf5e8a17e093065fb20fea00a29540fe2c7896441
Ignore --protect-args when already sent by client

In parse_arguments when --protect-args is encountered the function exits
early. The caller is expected to check protect_args, and recall
parse_arguments setting protect_args to 2. This patch prevents the
client from resetting protect_args during the second pass of
parse_arguments. This prevents parse_arguments returning early the
second time before it's able to sanitize the arguments it received.
options.c