htp: remove used body operation field

pull/3201/head
Victor Julien 8 years ago
parent 07cbbfb0d1
commit c63b1ce2c6

@ -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 */

@ -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;

Loading…
Cancel
Save