]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
htp: remove used body operation field
authorVictor Julien <victor@inliniac.net>
Fri, 26 Jan 2018 11:00:15 +0000 (12:00 +0100)
committerVictor Julien <victor@inliniac.net>
Tue, 30 Jan 2018 13:43:51 +0000 (14:43 +0100)
src/app-layer-htp.c
src/app-layer-htp.h

index 7d4db5edd42e4b9784aae1c016bcc6ca90577b4a..ec8cf98fd6c4a293feaf4827270724ce6d70b198 100644 (file)
@@ -1697,7 +1697,6 @@ static int HTPCallbackRequestBodyData(htp_tx_data_t *d)
     }
     if (!tx_ud->response_body_init) {
         tx_ud->response_body_init = 1;
-        tx_ud->operation = HTP_BODY_REQUEST;
 
         if (d->tx->request_method_number == HTP_M_POST) {
             SCLogDebug("POST");
@@ -1805,7 +1804,6 @@ static int HTPCallbackResponseBodyData(htp_tx_data_t *d)
     }
     if (!tx_ud->request_body_init) {
         tx_ud->request_body_init = 1;
-        tx_ud->operation = HTP_BODY_RESPONSE;
     }
 
     /* see if we can get rid of htp body chunks */
index 0ede1bb6155dba1be2f2d5bd971378681c86b3fc..eccb0dd7c4864d1013a05f65e452ced9d8227809 100644 (file)
 #define HTP_FLAG_STORE_FILES_TX_TS  0x0100
 #define HTP_FLAG_STORE_FILES_TX_TC  0x0200
 
-enum {
-    HTP_BODY_NONE = 0,                  /**< Flag to indicate the current
-                                             operation */
-    HTP_BODY_REQUEST,                   /**< Flag to indicate that the
-                                             current operation is a request */
-    HTP_BODY_RESPONSE                   /**< Flag to indicate that the current
-                                          * operation is a response */
-};
-
 enum {
     HTP_BODY_REQUEST_NONE = 0,
     HTP_BODY_REQUEST_MULTIPART, /* POST, MP */
@@ -210,8 +201,6 @@ typedef struct HtpTxUserData_ {
     uint8_t tsflags;
     uint8_t tcflags;
 
-    int16_t operation;
-
     uint8_t request_body_type;
     uint8_t response_body_type;