aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-06-03 16:45:23 +0200
committerAndreas Schneider <asn@cynapses.org>2010-06-03 16:46:17 +0200
commitb2f49a6a93db0b6039c609a4e60e3fbc70b77260 (patch)
treed72ee6e17f5e4ab1b42fd74c6252e24446d28312
parent99fb5987cee45c7f54bf496f5a6a85c5ebf59407 (diff)
downloadlibssh-b2f49a6a93db0b6039c609a4e60e3fbc70b77260.tar.gz
libssh-b2f49a6a93db0b6039c609a4e60e3fbc70b77260.tar.xz
libssh-b2f49a6a93db0b6039c609a4e60e3fbc70b77260.zip
config: Use ssh log and error functions for problems.
-rw-r--r--libssh/config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libssh/config.c b/libssh/config.c
index 1af4c6c7..0206a737 100644
--- a/libssh/config.c
+++ b/libssh/config.c
@@ -283,10 +283,12 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
}
break;
case SOC_UNSUPPORTED:
- fprintf(stderr, "Unsupported option: %s, line: %d\n", keyword, count);
+ ssh_log(session, SSH_LOG_RARE, "Unsupported option: %s, line: %d\n",
+ keyword, count);
break;
default:
- fprintf(stderr, "ERROR - unimplemented opcode: %d\n", opcode);
+ ssh_set_error(session, SSH_FATAL, "ERROR - unimplemented opcode: %d\n",
+ opcode);
SAFE_FREE(x);
return -1;
break;