htp: remove user setup from request line callback

This used to be the first callback that was called, but its not anymore.

Codecov confirmed that this is no longer used and therefore not useful.
pull/7882/head
Victor Julien 4 years ago
parent faca974f32
commit 18e63d4ede

@ -2310,15 +2310,9 @@ static int HTPCallbackRequestLine(htp_tx_t *tx)
return HTP_OK;
tx_ud = htp_tx_get_user_data(tx);
if (likely(tx_ud == NULL)) {
tx_ud = HTPMalloc(sizeof(*tx_ud));
if (unlikely(tx_ud == NULL)) {
bstr_free(request_uri_normalized);
return HTP_OK;
}
memset(tx_ud, 0, sizeof(*tx_ud));
htp_tx_set_user_data(tx, tx_ud);
}
if (unlikely(tx_ud->request_uri_normalized != NULL))
bstr_free(tx_ud->request_uri_normalized);
tx_ud->request_uri_normalized = request_uri_normalized;

Loading…
Cancel
Save