mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
config: Use ssh log and error functions for problems.
This commit is contained in:
@@ -283,10 +283,12 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SOC_UNSUPPORTED:
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf(stderr, "ERROR - unimplemented opcode: %d\n", opcode);
|
ssh_set_error(session, SSH_FATAL, "ERROR - unimplemented opcode: %d\n",
|
||||||
|
opcode);
|
||||||
SAFE_FREE(x);
|
SAFE_FREE(x);
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user