]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
snmp: Fix type
authorJeff Lucovsky <jeff@lucovsky.org>
Sun, 9 Jun 2019 11:25:37 +0000 (07:25 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 20 Jun 2019 18:14:58 +0000 (20:14 +0200)
src/detect-snmp-community.c

index c428e92968282f08b6f3b14c4899240fc5359291..bf4456bf38fe5e79e873be386dacaedb9c07751f 100644 (file)
@@ -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;
         }