From e40beb6d1e14f0e8e39a2e906a2024576e4d7fde Mon Sep 17 00:00:00 2001 From: Christian Deacon Date: Thu, 21 May 2020 00:13:24 +0000 Subject: [PATCH] Fixed segfault from changing payload matching length. --- src/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 5629f41..4eb46d0 100644 --- a/src/config.c +++ b/src/config.c @@ -65,7 +65,7 @@ void SetConfigDefaults(struct config_map *cfg) cfg->filters[i].icmpopts.do_code = 0; cfg->filters[i].icmpopts.do_type = 0; - for (uint16_t j = 0; j < MAX_PCKT_LENGTH - 1; j++) + for (uint16_t j = 0; j < MAX_PAYLOAD_LENGTH - 1; j++) { cfg->filters[i].payloadMatch[j] = 0; }