]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mime decode: remove unused url counter
authorVictor Julien <victor@inliniac.net>
Sat, 25 Oct 2014 13:22:30 +0000 (15:22 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 30 Oct 2014 12:33:54 +0000 (13:33 +0100)
src/mime-decode.c
src/mime-decode.h

index 5d03a51ff97296a9a12bfc130a630028a0f3a7d0..51bcda825e097c67d91e712870f1176b5c35279f 100644 (file)
@@ -1081,8 +1081,6 @@ static int FindUrlStrings(const uint8_t *line, uint32_t len,
                     } else {
                         SCFree(tempUrl);
                     }
-                    /* Increment counter */
-                    url->url_cnt++;
                 } else {
                     SCFree(tempUrl);
                 }
index bd3183b1db330a566445a54af55cb2471320aa08..c6d13af330c28163f62a25c5850a99b06c96acb8 100644 (file)
@@ -122,7 +122,6 @@ typedef struct MimeDecUrl {
     uint8_t *url;  /**< String representation of full or partial URL (lowercase) */
     uint32_t url_len;  /**< Length of the URL string */
     uint32_t url_flags;  /**< Flags indicating type of URL */
-    uint32_t url_cnt;  /**< Count of URLs with same value */
     struct MimeDecUrl *next;  /**< Pointer to next URL */
 } MimeDecUrl;