From d8a521efa0dd8fd253996fd2bb9dd60eb68f7861 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Wed, 6 Nov 2024 10:48:59 +0100 Subject: [PATCH] Upstream lookups should always check for the magic byte while searching Signed-off-by: DL6ER --- src/datastructure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/datastructure.c b/src/datastructure.c index 1911f95ac..1ad2511a0 100644 --- a/src/datastructure.c +++ b/src/datastructure.c @@ -146,7 +146,7 @@ int _findUpstreamID(const char *upstreamString, const in_port_t port, int line, for(unsigned int upstreamID = 0; upstreamID < counters->upstreams; upstreamID++) { // Get upstream pointer - const upstreamsData *upstream = _getUpstream(upstreamID, false, line, func, file); + const upstreamsData *upstream = _getUpstream(upstreamID, true, line, func, file); // Check if the returned pointer is valid before trying to access it if(upstream == NULL)