OSDN Git Service

fix decompress buffer mistake.
authorornse01 <ornse01@users.sourceforge.jp>
Thu, 3 Jul 2014 15:57:05 +0000 (15:57 +0000)
committerornse01 <ornse01@users.sourceforge.jp>
Thu, 3 Jul 2014 15:57:05 +0000 (15:57 +0000)
git-svn-id: http://svn.sourceforge.jp/svnroot/bchan/bchanf/trunk@601 20a0b8eb-f62a-4a12-8fe1-b598822500fb

src/http/http_connector.c

index d341dbb..226681e 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * http_connector.c
  *
- * Copyright (c) 2012 project bchan
+ * Copyright (c) 2012-2014 project bchan
  *
  * This software is provided 'as-is', without any express or implied
  * warranty. In no event will the authors be held liable for any damages
@@ -655,6 +655,9 @@ LOCAL W http_connector_rcv_message_body_contentdecode(http_connector_t *connecto
                        return err;
                }
                entry->rcv_reader.body.content_result_consumed = 0;
+               if (entry->rcv_reader.body.content_result_len == 0) {
+                       return 0;
+               }
        }
        result = entry->rcv_reader.body.content_result + entry->rcv_reader.body.content_result_consumed;
        entry->rcv_reader.body.content_result_consumed++;