[rs-commit] r280 - /mod_scep/trunk/mod_scep.c

rs-commit at redwax.eu rs-commit at redwax.eu
Sat Feb 15 20:15:33 CET 2020


Author: minfrin at redwax.eu
Date: Sat Feb 15 20:15:32 2020
New Revision: 280

Log:
Correct the check for "No content body, and no 'message' parameter".

Modified:
    mod_scep/trunk/mod_scep.c

Modified: mod_scep/trunk/mod_scep.c
==============================================================================
--- mod_scep/trunk/mod_scep.c	(original)
+++ mod_scep/trunk/mod_scep.c	Sat Feb 15 20:15:32 2020
@@ -2460,6 +2460,7 @@
     PKCS7_ISSUER_AND_SERIAL *ias;
     scep_t *scep;
     BIO *outbio;
+    apr_size_t size = 0;
 
     /*
      * If the incoming body has a non zero content length, and is not an HTML
@@ -2471,7 +2472,6 @@
      * POST..."
      */
     if (!ct || strcmp(ct, "application/x-www-form-urlencoded")) {
-        apr_size_t size = 0;
         int seen_eos = 0;
         BIO *b = BIO_new(BIO_s_mem());
         apr_pool_cleanup_register(r->pool, b, scep_BIO_cleanup,
@@ -2556,7 +2556,7 @@
     /*
      * No body, no message, we have nothing to work with.
      */
-    else {
+    if (!size && !message) {
         log_message(r, APR_SUCCESS,
                 "PKIOperation failed: No content body, and no 'message' parameter");
 



More information about the rs-commit mailing list