- /* new line */
- if (strncmp(e_ptr, HTTP_CRLF, 2)) {
- http_error_ex(E_WARNING, HTTP_E_PARSE,
- "Invalid character (expected 0x0D 0x0A; got: 0x%x(%c) 0x%x(%c))",
- *e_ptr, *e_ptr, *(e_ptr + 1), *(e_ptr + 1));
- efree(*decoded);
- return NULL;
- }
-
- /* hex to long */
- {
- char *error = NULL;
- chunk_len = strtol(hex_len, &error, 16);
- if (error == hex_len) {
- http_error_ex(E_WARNING, HTTP_E_PARSE, "Invalid chunk size string: '%s'", hex_len);
- efree(*decoded);
- return NULL;
- }
- }
-