From: Victor Julien Date: Fri, 26 Jan 2018 11:00:15 +0000 (+0100) Subject: htp: remove used body operation field X-Git-Tag: suricata-4.1.0-beta1~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c63b1ce2c676218132b625eb28df995a3d47768a;p=thirdparty%2Fsuricata.git htp: remove used body operation field --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 7d4db5edd4..ec8cf98fd6 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -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 */ diff --git a/src/app-layer-htp.h b/src/app-layer-htp.h index 0ede1bb615..eccb0dd7c4 100644 --- a/src/app-layer-htp.h +++ b/src/app-layer-htp.h @@ -67,15 +67,6 @@ #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;