[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Minor error in setting error
[Thread Prev] | [Thread Next]
- Subject: Minor error in setting error
- From: Jason Curl <jason@xxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Sun, 28 May 2017 21:04:10 +0200
- To: <libssh@xxxxxxxxxx>
Hi,I've found what appears to be a bug in code. the function ssh_set_error takes an int for an input, but there appears to be an enum for this called ssh_error_types_e. In almost all cases usage of ssh_set_error uses a value from the enum, except in messages.c line 864 which has one line of code:
ssh_set_error(session, SSH_LOG_PACKET, "USERAUTH_REQUEST: gssapi-with-mic missing OID");
In this case, SSH_LOG_PACKET=3 which is the same value as SSH_EINTR=3. Regards, Jason.
RE: Minor error in setting error | Jason Curl <jason@xxxxxxxxxxxxxxxxxxxxxxxx> |