diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2023-07-29 07:23:11 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2023-07-29 07:23:11 +0100 |
| commit | b77dbd8ce169fc6e575b3f471150b14832e6e991 (patch) | |
| tree | 80ccc19fcc05db23d0a73938c14647ba629822af /kiss.c | |
| parent | ed81fc5267a230d12a2519e61707025087ec6234 (diff) | |
6.0.23.8123.82
Diffstat (limited to 'kiss.c')
| -rw-r--r-- | kiss.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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, ¶m);
- // If configured send TNC command
-
- if (KISS->KISSCMD && KISS->KISSCMDLEN)
+ if (KISS && KISS->KISSCMD && KISS->KISSCMDLEN)
send(sock, KISS->KISSCMD, KISS->KISSCMDLEN, 0);
continue;
|
