diff options
Diffstat (limited to 'src/daemon/postprocessor.c')
-rw-r--r-- | src/daemon/postprocessor.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/postprocessor.c b/src/daemon/postprocessor.c index 71823c9b..b93816ee 100644 --- a/src/daemon/postprocessor.c +++ b/src/daemon/postprocessor.c | |||
@@ -1065,7 +1065,9 @@ MHD_destroy_post_processor (struct MHD_PostProcessor *pp) | |||
1065 | /* These internal strings need cleaning up since | 1065 | /* These internal strings need cleaning up since |
1066 | the post-processing may have been interrupted | 1066 | the post-processing may have been interrupted |
1067 | at any stage */ | 1067 | at any stage */ |
1068 | if ((pp->xbuf_pos > 0) || (pp->state != PP_Done)) | 1068 | if ((pp->xbuf_pos > 0) || |
1069 | ( (pp->state != PP_Done) && | ||
1070 | (pp->state != PP_ExpectNewLine))) | ||
1069 | ret = MHD_NO; | 1071 | ret = MHD_NO; |
1070 | else | 1072 | else |
1071 | ret = MHD_YES; | 1073 | ret = MHD_YES; |