version 1.6, 2008/06/13 00:47:53 |
version 1.7, 2008/06/13 17:21:20 |
|
|
|
|
/* Get authorisation status and PID of controlee */ |
/* Get authorisation status and PID of controlee */ |
if (ssh_msg_recv(sock, &m) == -1) { |
if (ssh_msg_recv(sock, &m) == -1) { |
error("%s: msg_recv", __func__); |
error("%s: Did not receive reply from master", __func__); |
goto muxerr; |
goto muxerr; |
} |
} |
if (buffer_get_char(&m) != SSHMUX_VER) { |
if (buffer_get_char(&m) != SSHMUX_VER) { |
error("%s: wrong version", __func__); |
error("%s: Master replied with wrong version", __func__); |
goto muxerr; |
goto muxerr; |
} |
} |
if (buffer_get_int_ret(&allowed, &m) != 0) { |
if (buffer_get_int_ret(&allowed, &m) != 0) { |