diff options
author | Fritz Elfert <felfert@to.com> | 2002-02-16 17:35:42 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2002-02-16 17:35:42 +0000 |
commit | 12241e0ff5ea242891fc3a8c177e8f55e897f2a3 (patch) | |
tree | dd2ad24b8d0a0faf4e8e6548ff3f7297d5d3cf73 /ncpd/ncp.cc | |
parent | b32cfed12f9c9aff06ef3f7c6fb046c38ada987a (diff) | |
download | plptools-12241e0ff5ea242891fc3a8c177e8f55e897f2a3.tar.gz plptools-12241e0ff5ea242891fc3a8c177e8f55e897f2a3.tar.bz2 plptools-12241e0ff5ea242891fc3a8c177e8f55e897f2a3.zip |
- Applied patches from Luke Diamand, Marc Spoorendonk and Chris Halls
Diffstat (limited to 'ncpd/ncp.cc')
-rw-r--r-- | ncpd/ncp.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc index cead4a7..031487f 100644 --- a/ncpd/ncp.cc +++ b/ncpd/ncp.cc @@ -39,7 +39,7 @@ #define MAX_CHANNELS_SIBO 8 #define NCP_SENDLEN 250 -ncp::ncp(const char *fname, int baud, IOWatch & iow) +ncp::ncp(const char *fname, int baud, IOWatch *iow) { channelPtr = new channel*[MAX_CHANNELS_PSION + 1]; messageList = new bufferStore[MAX_CHANNELS_PSION + 1]; @@ -71,8 +71,9 @@ ncp::~ncp() } controlChannel(0, NCON_MSG_NCP_END, b); delete l; - delete channelPtr; - delete remoteChanList; + delete [] channelPtr; + delete [] remoteChanList; + delete [] messageList; } int ncp:: @@ -251,7 +252,8 @@ decodeControlMessage(bufferStore & buff) } else { if (verbose & NCP_DEBUG_LOG) cout << "Unknown " << (int) buff.getByte(1) << endl; - channelPtr[forChan]->ncpConnectNak(); + if (channelPtr[forChan]) + channelPtr[forChan]->ncpConnectNak(); } break; |