diff options
Diffstat (limited to 'ncpd/ncp.cc')
-rw-r--r-- | ncpd/ncp.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc index 83fa8b9..7e87083 100644 --- a/ncpd/ncp.cc +++ b/ncpd/ncp.cc @@ -137,6 +137,11 @@ receive(bufferStore s) { } else { int allData = s.getByte(1); s.discardFirstBytes(2); + + if (protocolVersion == PV_SERIES_3) { + channel = lastSentChannel; + } + if (!isValidChannel(channel)) { lerr << "ncp: Got message for unknown channel\n"; } else { @@ -466,6 +471,7 @@ send(int channel, bufferStore & a) a.discardFirstBytes(NCP_SENDLEN); l->send(out); } while (!last); + lastSentChannel = channel; } void ncp:: |