[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/7] options: Check if a port has been given
[Thread Prev] | [Thread Next]
- Subject: [PATCH 1/7] options: Check if a port has been given
- From: Justus Winter <justus@xxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 29 Mar 2016 13:06:58 +0200
- To: libssh@xxxxxxxxxx
- Cc: Justus Winter <justus@xxxxxxxxxxx>
* src/options.c (ssh_options_getopt): Only call 'ssh_options_set' if a port has been given. Signed-off-by: Justus Winter <justus@xxxxxxxxxxx> --- src/options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/options.c b/src/options.c index 791d8cb..cae37dd 100644 --- a/src/options.c +++ b/src/options.c @@ -1179,7 +1179,9 @@ int ssh_options_getopt(ssh_session session, int *argcptr, char **argv) { } } - ssh_options_set(session, SSH_OPTIONS_PORT_STR, port); + if (port) { + ssh_options_set(session, SSH_OPTIONS_PORT_STR, port); + } ssh_options_set(session, SSH_OPTIONS_SSH1, &ssh1); ssh_options_set(session, SSH_OPTIONS_SSH2, &ssh2); -- 2.1.4
[PATCH 4/7] pki_gcrypt: Rework 'pki_publickey_to_blob' | Justus Winter <justus@xxxxxxxxxxx> |
[PATCH 3/7] pki_gcrypt: Rework 'pki_key_dup' | Justus Winter <justus@xxxxxxxxxxx> |
[PATCH 2/7] libgcrypt: Add helper to extract MPIs into ssh_strings | Justus Winter <justus@xxxxxxxxxxx> |
[PATCH 5/7] pki_gcrypt: Rework 'pki_export_pubkey_rsa1' | Justus Winter <justus@xxxxxxxxxxx> |
[PATCH 7/7] pki: Fix debug message | Justus Winter <justus@xxxxxxxxxxx> |
[PATCH 6/7] dh: Print hexadecimal data to stderr | Justus Winter <justus@xxxxxxxxxxx> |
[PATCH 1/5] options: Check if a port has been given | Justus Winter <justus@xxxxxxxxxxx> |