diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/postprocessor.c | 12 | ||||
-rw-r--r-- | src/include/microhttpd.h | 2 |
2 files changed, 7 insertions, 7 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, |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 3f488538..10a9d32c 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -106,7 +106,7 @@ extern "C" | |||
106 | /** | 106 | /** |
107 | * Current version of the library. | 107 | * Current version of the library. |
108 | */ | 108 | */ |
109 | #define MHD_VERSION 0x00091600 | 109 | #define MHD_VERSION 0x00091700 |
110 | 110 | ||
111 | /** | 111 | /** |
112 | * MHD-internal return code for "YES". | 112 | * MHD-internal return code for "YES". |