Skip to content

Commit

Permalink
Allow touch key with negative number
Browse files Browse the repository at this point in the history
  • Loading branch information
mckelvin committed Apr 8, 2015
1 parent 73ed131 commit d17cdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/nc_memcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ memcache_parse_req(struct msg *r)

case SW_SPACES_BEFORE_NUM:
if (ch != ' ') {
if (!isdigit(ch)) {
if (!(isdigit(ch) || ch == '-')) {
goto error;
}
/* num_start <- p; num <- ch - '0' */
Expand Down

0 comments on commit d17cdf4

Please sign in to comment.