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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 208686bb..8b710ea1 100644
--- a/src/microhttpd/postprocessor.c
+++ b/src/microhttpd/postprocessor.c
@@ -783,12 +783,12 @@ process_value_to_boundary (struct MHD_PostProcessor *pp,
783 break; 783 break;
784 newline++; 784 newline++;
785 } 785 }
786 if (newline + pp->blen + 4 <= pp->buffer_pos) 786 if (newline + blen + 4 <= pp->buffer_pos)
787 { 787 {
788 /* can check boundary */ 788 /* can check boundary */
789 if (0 != memcmp (&buf[newline + 4], 789 if (0 != memcmp (&buf[newline + 4],
790 boundary, 790 boundary,
791 pp->blen)) 791 blen))
792 { 792 {
793 /* no boundary, "\r\n--" is part of content, skip */ 793 /* no boundary, "\r\n--" is part of content, skip */
794 newline += 4; 794 newline += 4;
@@ -801,7 +801,7 @@ process_value_to_boundary (struct MHD_PostProcessor *pp,
801 pp->skip_rn = RN_Dash; 801 pp->skip_rn = RN_Dash;
802 pp->state = next_state; 802 pp->state = next_state;
803 pp->dash_state = next_dash_state; 803 pp->dash_state = next_dash_state;
804 (*ioffptr) += pp->blen + 4; /* skip boundary as well */ 804 (*ioffptr) += blen + 4; /* skip boundary as well */
805 buf[newline] = '\0'; 805 buf[newline] = '\0';
806 break; 806 break;
807 } 807 }