From: Jeff Lucovsky Date: Sun, 9 Jun 2019 11:25:37 +0000 (-0400) Subject: snmp: Fix type X-Git-Tag: suricata-5.0.0-rc1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=294d0e8cbab31bc5193f4995f7802be64a81e584;p=thirdparty%2Fsuricata.git snmp: Fix type --- diff --git a/src/detect-snmp-community.c b/src/detect-snmp-community.c index c428e92968..bf4456bf38 100644 --- a/src/detect-snmp-community.c +++ b/src/detect-snmp-community.c @@ -99,9 +99,9 @@ static InspectionBuffer *GetData(DetectEngineThreadCtx *det_ctx, InspectionBuffer *buffer = InspectionBufferGet(det_ctx, list_id); if (buffer->inspect == NULL) { uint32_t data_len = 0; - uint8_t *data = NULL; + const uint8_t *data = NULL; - rs_snmp_tx_get_community(txv, (uint8_t **)&data, &data_len); + rs_snmp_tx_get_community(txv, &data, &data_len); if (data == NULL || data_len == 0) { return NULL; }