ssh_client: open: fix handling of the mode vararg

The standard says that random errors might occur if va_arg is used but
no additional argument was provided.  You might get garbage, or a crash,
or other fun stuff.  Fix the open syscall wrapper to DTRT.

Note: I didn't observe any specific misbehavior here, but better to do
what the standard says rather than hope for the best.

Change-Id: I16ae99537440844ba15dacd410b3903adff11e37
Reviewed-on: https://chromium-review.googlesource.com/466906
Reviewed-by: Brandon Gilmore <varz@google.com>
Reviewed-by: Rob Ginda <rginda@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
1 file changed