From: Philippe Antoine Date: Tue, 19 May 2020 11:58:38 +0000 (+0200) Subject: http: remove unused code X-Git-Tag: suricata-6.0.0-beta1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e13b319beb7003151ad206b6e86ed8ada6895a6c;p=thirdparty%2Fsuricata.git http: remove unused code HtpRequestBodySetupPUT function So that we can see that we do not use data=NULL in there --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index e19d2bf758..9927afb35a 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -1632,19 +1632,6 @@ end: return 0; } -/** \brief setup things for put request - * \todo really needed? */ -static int HtpRequestBodySetupPUT(htp_tx_data_t *d, HtpTxUserData *htud) -{ -// if (d->tx->parsed_uri == NULL || d->tx->parsed_uri->path == NULL) { -// return -1; -// } - - /* filename is d->tx->parsed_uri->path */ - - return 0; -} - /** \internal * \brief Handle POST, no multipart body data */ @@ -1878,9 +1865,7 @@ static int HTPCallbackRequestBodyData(htp_tx_data_t *d) SCLogDebug("not multipart"); } } else if (d->tx->request_method_number == HTP_M_PUT) { - if (HtpRequestBodySetupPUT(d, tx_ud) == 0) { - tx_ud->request_body_type = HTP_BODY_REQUEST_PUT; - } + tx_ud->request_body_type = HTP_BODY_REQUEST_PUT; } }