Skip to content

Commit

Permalink
Fixed issue with invalid binary protocol touch command expiration time
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Zhylinski authored and dormando committed Jul 30, 2012
1 parent 7051da9 commit 045da59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memcached.c
Expand Up @@ -1197,8 +1197,8 @@ static void process_bin_touch(conn *c) {
protocol_binary_response_get* rsp = (protocol_binary_response_get*)c->wbuf;
char* key = binary_get_key(c);
size_t nkey = c->binary_header.request.keylen;
protocol_binary_request_touch *t = (void *)&c->binary_header;
uint32_t exptime = ntohl(t->message.body.expiration);
protocol_binary_request_touch *t = binary_get_request(c);
time_t exptime = ntohl(t->message.body.expiration);

if (settings.verbose > 1) {
int ii;
Expand Down

0 comments on commit 045da59

Please sign in to comment.