Skip to content
Snippets Groups Projects
Commit 1994a535 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't log error on final channel message

parent 2e96a7e2
No related branches found
No related tags found
No related merge requests found
Pipeline #5154 passed
...@@ -1939,7 +1939,13 @@ static int crypt_pop_channel_data(sbbs_t *sbbs, char *inbuf, int want, int *got) ...@@ -1939,7 +1939,13 @@ static int crypt_pop_channel_data(sbbs_t *sbbs, char *inbuf, int want, int *got)
} }
} }
else { else {
/*
* CRYPT_ERROR_NOTFOUND indicates this is the last data on the channel (whatever it was)
* and it was destroyed, so it's no longer possible to get the channel id.
*/
if (status != CRYPT_ERROR_NOTFOUND)
GCESS(status, sbbs->client_socket, sbbs->ssh_session, "getting channel id"); GCESS(status, sbbs->client_socket, sbbs->ssh_session, "getting channel id");
closing_channel = -1;
} }
} }
if (ret == CRYPT_ENVELOPE_RESOURCE) if (ret == CRYPT_ENVELOPE_RESOURCE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment