summaryrefslogtreecommitdiff
path: root/kiss.c
diff options
context:
space:
mode:
authorJohn Wiseman <john.wiseman@cantab.net>2023-07-29 07:23:11 +0100
committerJohn Wiseman <john.wiseman@cantab.net>2023-07-29 07:23:11 +0100
commitb77dbd8ce169fc6e575b3f471150b14832e6e991 (patch)
tree80ccc19fcc05db23d0a73938c14647ba629822af /kiss.c
parented81fc5267a230d12a2519e61707025087ec6234 (diff)
6.0.23.8123.82
Diffstat (limited to 'kiss.c')
-rw-r--r--kiss.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/kiss.c b/kiss.c
index 1f52345..0be9043 100644
--- a/kiss.c
+++ b/kiss.c
@@ -492,7 +492,7 @@ HANDLE OpenConnection(struct PORTCONTROL * PortVector)
ASYSEND(PortVector, ENCBUFF, 5);
}
- if (KISS->KISSCMD && KISS->KISSCMDLEN)
+ if (KISS && KISS->KISSCMD && KISS->KISSCMDLEN)
ASYSEND(PortVector, KISS->KISSCMD, KISS->KISSCMDLEN);
@@ -1890,9 +1890,7 @@ VOID ConnecttoTCPThread(NPASYINFO ASY)
ioctlsocket (sock, FIONBIO, &param);
- // If configured send TNC command
-
- if (KISS->KISSCMD && KISS->KISSCMDLEN)
+ if (KISS && KISS->KISSCMD && KISS->KISSCMDLEN)
send(sock, KISS->KISSCMD, KISS->KISSCMDLEN, 0);
continue;