aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/postprocessor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/postprocessor.c')
-rw-r--r--src/microhttpd/postprocessor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 99074215..c00605c7 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -83,7 +83,7 @@ MHD_create_post_processor (struct MHD_Connection *connection,
83 return NULL; /* failed to determine boundary */ 83 return NULL; /* failed to determine boundary */
84 boundary += MHD_STATICSTR_LEN_ ("boundary="); 84 boundary += MHD_STATICSTR_LEN_ ("boundary=");
85 blen = strlen (boundary); 85 blen = strlen (boundary);
86 if ( (blen == 0) || 86 if ( (blen < 2) ||
87 (blen * 2 + 2 > buffer_size) ) 87 (blen * 2 + 2 > buffer_size) )
88 return NULL; /* (will be) out of memory or invalid boundary */ 88 return NULL; /* (will be) out of memory or invalid boundary */
89 if ( (boundary[0] == '"') && 89 if ( (boundary[0] == '"') &&