From ac56bc94c58cf64d64baa3bac0cfed5e68fb468f Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Wed, 1 Aug 2001 04:20:30 +0000 Subject: - Corrected debug message and channel argument when rejecting a connect request from Psion. - Fixed cleanup for socketChan in initial state. --- ncpd/ncp.cc | 4 ++-- ncpd/socketchan.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'ncpd') diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc index b72a708..cead4a7 100644 --- a/ncpd/ncp.cc +++ b/ncpd/ncp.cc @@ -224,10 +224,10 @@ decodeControlMessage(bufferStore & buff) lChan->setVerbose(verbose); } else { if (verbose & NCP_DEBUG_LOG) - cout << "ncp: Link DOWN" << endl; + cout << "ncp: REJECT connect" << endl; bufferStore b; b.addByte(remoteChan); - controlChannel(localChan, NCON_MSG_CHANNEL_DISCONNECT, b); + controlChannel(0, NCON_MSG_CHANNEL_DISCONNECT, b); } break; diff --git a/ncpd/socketchan.cc b/ncpd/socketchan.cc index 0bb68e6..32830af 100644 --- a/ncpd/socketchan.cc +++ b/ncpd/socketchan.cc @@ -212,8 +212,8 @@ socketPoll() ncpRegister(); break; case -1: - ncpConnectTerminate(); - break; + terminateWhenAsked(); + break; } } else if (connected) { bufferStore a; -- cgit v1.2.3