1
1

options: Add missing argument check.

Этот коммит содержится в:
Andreas Schneider 2011-11-03 18:24:52 +01:00
родитель 17f396ffab
Коммит 99d2cf02a6

Просмотреть файл

@ -843,9 +843,16 @@ int ssh_options_get_port(ssh_session session, unsigned int* port_target) {
int ssh_options_get(ssh_session session, enum ssh_options_e type, char** value)
{
char* src = NULL;
if (session == NULL) {
return SSH_ERROR;
}
if (value == NULL) {
ssh_set_error_invalid(session);
return SSH_ERROR;
}
switch(type)
{
case SSH_OPTIONS_HOST: {