]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
http: remove unused code
authorPhilippe Antoine <contact@catenacyber.fr>
Tue, 19 May 2020 11:58:38 +0000 (13:58 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 3 Aug 2020 12:04:48 +0000 (14:04 +0200)
HtpRequestBodySetupPUT function
So that we can see that we do not use data=NULL in there

src/app-layer-htp.c

index e19d2bf758ff3ac1cd1837839646c474ae186e7b..9927afb35a0387664db611a778cd386339f6e327 100644 (file)
@@ -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;
         }
     }