diff options
Diffstat (limited to 'src/daemon/postprocessor.c')
-rw-r--r-- | src/daemon/postprocessor.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c index 103e3cb7..71823c9b 100644 --- a/src/daemon/postprocessor.c +++ b/src/daemon/postprocessor.c | |||
@@ -494,6 +494,7 @@ find_boundary (struct MHD_PostProcessor *pp, | |||
494 | { | 494 | { |
495 | if (pp->buffer_pos == pp->buffer_size) | 495 | if (pp->buffer_pos == pp->buffer_size) |
496 | pp->state = PP_Error; /* out of memory */ | 496 | pp->state = PP_Error; /* out of memory */ |
497 | ++(*ioffptr); | ||
497 | return MHD_NO; /* not enough data */ | 498 | return MHD_NO; /* not enough data */ |
498 | } | 499 | } |
499 | if ((0 != memcmp ("--", buf, 2)) || (0 != memcmp (&buf[2], boundary, blen))) | 500 | if ((0 != memcmp ("--", buf, 2)) || (0 != memcmp (&buf[2], boundary, blen))) |
@@ -841,12 +842,11 @@ post_process_multipart (struct MHD_PostProcessor *pp, | |||
841 | * > anything that appears before the first boundary delimiter | 842 | * > anything that appears before the first boundary delimiter |
842 | * > line or after the last one. | 843 | * > line or after the last one. |
843 | */ | 844 | */ |
844 | if (MHD_NO == find_boundary (pp, | 845 | (void) find_boundary (pp, |
845 | pp->boundary, | 846 | pp->boundary, |
846 | pp->blen, | 847 | pp->blen, |
847 | &ioff, | 848 | &ioff, |
848 | PP_ProcessEntryHeaders, PP_Done)) | 849 | PP_ProcessEntryHeaders, PP_Done); |
849 | ++ioff; | ||
850 | break; | 850 | break; |
851 | case PP_NextBoundary: | 851 | case PP_NextBoundary: |
852 | if (MHD_NO == find_boundary (pp, | 852 | if (MHD_NO == find_boundary (pp, |