diff --git a/src/options.c b/src/options.c index 61a7e4a7..b81ac97f 100644 --- a/src/options.c +++ b/src/options.c @@ -637,6 +637,7 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type, char *username = NULL, *hostname = NULL; rc = ssh_config_parse_uri(value, &username, &hostname, NULL, true); if (rc != SSH_OK) { + ssh_set_error_invalid(session); return -1; } if (username != NULL) {