diff options
Diffstat (limited to 'libssh/agent.c')
-rw-r--r-- | libssh/agent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/agent.c b/libssh/agent.c index a4e0efbf..bada814c 100644 --- a/libssh/agent.c +++ b/libssh/agent.c @@ -452,7 +452,7 @@ ssh_string agent_sign_data(struct ssh_session_struct *session, buffer_free(request); /* check if reply is valid */ - if (buffer_get_u8(reply, (uint8_t *) &type) < 0) { + if (buffer_get_u8(reply, (uint8_t *) &type) != sizeof(uint8_t)) { goto error; } if (agent_failed(type)) { |