aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/ncp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ncpd/ncp.cc')
-rw-r--r--ncpd/ncp.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc
index f20ca75..1780826 100644
--- a/ncpd/ncp.cc
+++ b/ncpd/ncp.cc
@@ -257,6 +257,16 @@ decodeControlMessage(bufferStore & buff)
cout << "ncp: REJECT client connect" << endl;
}
controlChannel(localChan, NCON_MSG_CONNECT_RESPONSE, b);
+
+ // Create linkchan if it does not yet exist
+ if (!lChan) {
+ if (verbose & NCP_DEBUG_LOG)
+ cout << "ncp: new active linkChan" << endl;
+ channelPtr[localChan] =
+ lChan = new linkChan(this, -1);
+ lChan->setVerbose(verbose);
+ }
+
}
break;