Skip to content
This repository was archived by the owner on Nov 27, 2024. It is now read-only.

Call event handler on WONT and DONT messages when in the Q_WANTYES state #51

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libtelnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ static void _negotiate(telnet_t *telnet, unsigned char telopt) {
case Q_WANTYES:
case Q_WANTYES_OP:
_set_rfc1143(telnet, telopt, Q_US(q), Q_NO);
NEGOTIATE_EVENT(telnet, TELNET_EV_WONT, telopt);
break;
}
break;
Expand Down Expand Up @@ -501,6 +502,7 @@ static void _negotiate(telnet_t *telnet, unsigned char telopt) {
case Q_WANTYES:
case Q_WANTYES_OP:
_set_rfc1143(telnet, telopt, Q_NO, Q_HIM(q));
NEGOTIATE_EVENT(telnet, TELNET_EV_DONT, telopt);
break;
}
break;
Expand Down