Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
strtoul doesn't reset errno upon succes
Fix #1206
  • Loading branch information
skinkie committed Apr 12, 2018
1 parent fe2465c commit 6a3d88d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cherokee/post.c
Expand Up @@ -325,6 +325,7 @@ process_chunk (cherokee_post_t *post,

/* Read the length
*/
errno = 0;
content_size = (size_t) strtoul (begin, NULL, 16);
if (unlikely (errno != 0)) {
return ret_error;
Expand Down

0 comments on commit 6a3d88d

Please sign in to comment.