From 4dfb584164a10154a59a72bf265a2b365b8914e5 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 24 Oct 2022 12:50:15 +0200 Subject: [PATCH] dnp3: no error logging in packet path --- src/app-layer-dnp3.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/app-layer-dnp3.c b/src/app-layer-dnp3.c index 0dedfc0b1a..a8256c572b 100644 --- a/src/app-layer-dnp3.c +++ b/src/app-layer-dnp3.c @@ -1096,8 +1096,6 @@ static AppLayerResult DNP3ParseRequest(Flow *f, void *state, AppLayerParserState if (buffer->len) { if (!DNP3BufferAdd(buffer, input, input_len)) { - SCLogError(SC_ERR_MEM_ALLOC, "Failed to allocate memory to buffer " - "DNP3 request data"); goto error; } processed = DNP3HandleRequestLinkLayer(dnp3, @@ -1122,8 +1120,6 @@ static AppLayerResult DNP3ParseRequest(Flow *f, void *state, AppLayerParserState /* Not all data was processed, buffer it. */ if (input_len) { if (!DNP3BufferAdd(buffer, input, input_len)) { - SCLogError(SC_ERR_MEM_ALLOC, - "Failed to allocate memory to buffer DNP3 request data"); goto error; } } @@ -1235,8 +1231,6 @@ static AppLayerResult DNP3ParseResponse(Flow *f, void *state, AppLayerParserStat if (buffer->len) { if (!DNP3BufferAdd(buffer, input, input_len)) { - SCLogError(SC_ERR_MEM_ALLOC, "Failed to allocate memory to buffer " - "DNP3 response data"); goto error; } processed = DNP3HandleResponseLinkLayer(dnp3, @@ -1265,8 +1259,6 @@ static AppLayerResult DNP3ParseResponse(Flow *f, void *state, AppLayerParserStat /* Not all data was processed, buffer it. */ if (input_len) { if (!DNP3BufferAdd(buffer, input, input_len)) { - SCLogError(SC_ERR_MEM_ALLOC, - "Failed to allocate memory to buffer DNP3 response data"); goto error; } }