Merge branch 'v2.6.x'
authorMichael Wallner <mike@php.net>
Wed, 14 Sep 2016 09:39:47 +0000 (11:39 +0200)
committerMichael Wallner <mike@php.net>
Wed, 14 Sep 2016 09:39:47 +0000 (11:39 +0200)
src/php_http_encoding.c

index 0aa7dc1638301b58bf66b46d4615e98e81ab6657..db364b3858e3273d339696bf89c5fe16ea317388 100644 (file)
@@ -64,7 +64,7 @@ const char *php_http_encoding_dechunk(const char *encoded, size_t encoded_len, c
                /* reached the end */
                if (!chunk_len) {
                        /* move over '0' chunked encoding terminator and any new lines */
-                       do {
+                       while(1) {
                                switch (*e_ptr) {
                                        case '0':
                                        case '\r':
@@ -72,7 +72,8 @@ const char *php_http_encoding_dechunk(const char *encoded, size_t encoded_len, c
                                                ++e_ptr;
                                                continue;
                                }
-                       } while (0);
+                               break;
+                       }
                        break;
                }