aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd
diff options
context:
space:
mode:
authorFritz Elfert <felfert@to.com>2001-08-01 04:20:30 +0000
committerFritz Elfert <felfert@to.com>2001-08-01 04:20:30 +0000
commitac56bc94c58cf64d64baa3bac0cfed5e68fb468f (patch)
tree1025c85e578c4ab7a5f071c5dba0de5e7d161220 /ncpd
parent516fdb01452002400ce93911702b9737854d7470 (diff)
downloadplptools-ac56bc94c58cf64d64baa3bac0cfed5e68fb468f.tar.gz
plptools-ac56bc94c58cf64d64baa3bac0cfed5e68fb468f.tar.bz2
plptools-ac56bc94c58cf64d64baa3bac0cfed5e68fb468f.zip
- Corrected debug message and channel argument when rejecting a connect
request from Psion. - Fixed cleanup for socketChan in initial state.
Diffstat (limited to 'ncpd')
-rw-r--r--ncpd/ncp.cc4
-rw-r--r--ncpd/socketchan.cc4
2 files changed, 4 insertions, 4 deletions
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;