Skip to content
Browse files

Properly abort on error state.

  • Loading branch information...
1 parent a5fd57c commit b8902851914317632a28df71a9d60a9ea37400ec @FooBarWidget committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 multipart.cpp
View
4 multipart.cpp
@@ -146,6 +146,10 @@ class MultipartParser {
}
size_t feed(const char *buffer, size_t len) {
+ if (state == ERROR) {
+ return 0;
+ }
+
State state = this->state;
int flags = this->flags;
size_t prevIndex = this->index;

0 comments on commit b890285

Please sign in to comment.
Something went wrong with that request. Please try again.