diff options
author | Nick Vatamaniuc <vatamane@apache.org> | 2018-04-17 19:51:01 -0400 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2018-04-17 22:42:52 -0400 |
commit | 894accb667f4ccff6604d98c8a20087cc1ed1a18 (patch) | |
tree | fd9e2fdf1bba763daec0b13e697be170b6f88f4b | |
parent | 8de46c7a3ea097b4e50dfb4656172562a0dc69dc (diff) | |
download | couchdb-894accb667f4ccff6604d98c8a20087cc1ed1a18.tar.gz |
Fix length badarg error in mp parser
This was introduced in:
https://github.com/apache/couchdb/commit/083239353e919e897b97e8a96ee07cb42ca4eccd
Issue #1286
-rw-r--r-- | src/couch/src/couch_httpd_multipart.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/couch/src/couch_httpd_multipart.erl b/src/couch/src/couch_httpd_multipart.erl index e556b283f..33795a3a1 100644 --- a/src/couch/src/couch_httpd_multipart.erl +++ b/src/couch/src/couch_httpd_multipart.erl @@ -208,7 +208,8 @@ remove_writer(WriterPid, WriterRef, Counters) -> {ok, {WriterRef, _}} -> case num_mp_writers() of N when N > 1 -> - num_mp_writers(N - 1); + num_mp_writers(N - 1), + orddict:erase(WriterPid, Counters); _ -> abort_parsing end; |