mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
tests: Do not parse global config in torture_ssh_session()
Do not parse global config file in sessions created by torture_ssh_session(). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
85239c8ea0
commit
8a50dbc6ba
@@ -262,6 +262,8 @@ ssh_session torture_ssh_session(struct torture_state *s,
|
||||
int method;
|
||||
int rc;
|
||||
|
||||
bool process_config = false;
|
||||
|
||||
if (host == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
@@ -277,6 +279,10 @@ ssh_session torture_ssh_session(struct torture_state *s,
|
||||
}
|
||||
#endif /* WITH_PCAP */
|
||||
|
||||
if (ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity) < 0) {
|
||||
goto failed;
|
||||
}
|
||||
|
||||
if (ssh_options_set(session, SSH_OPTIONS_HOST, host) < 0) {
|
||||
goto failed;
|
||||
}
|
||||
@@ -293,7 +299,8 @@ ssh_session torture_ssh_session(struct torture_state *s,
|
||||
}
|
||||
}
|
||||
|
||||
if (ssh_options_set(session, SSH_OPTIONS_LOG_VERBOSITY, &verbosity) < 0) {
|
||||
if (ssh_options_set(session, SSH_OPTIONS_PROCESS_CONFIG,
|
||||
&process_config) < 0) {
|
||||
goto failed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user