From e6610a3104a40a3e30c3bf48cd0ea0f251e62819 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Thu, 24 Jan 2019 08:51:25 -0700 Subject: [PATCH] fixed for loop condition --- QnetGateway.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index ae222ee..6d58647 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1102,7 +1102,9 @@ void CQnetGateway::ProcessG2(const ssize_t g2buflen, const SDSVT &g2buf, const b ; /* we do not care about end-of-QSO */ else { /* for which repeater this stream has timed out ? */ - for (i=0; i<3 && rptr.mod[i].defined; i++) { + for (i=0; i<3; i++) { + if (! rptr.mod[i].defined) + continue; /* match saved stream ? */ bool match = (toRptr[i].saved_hdr.vpkt.streamid == g2buf.streamid); if (is_from_g2)