Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7051da9 commit 045da59Copy full SHA for 045da59
memcached.c
@@ -1197,8 +1197,8 @@ static void process_bin_touch(conn *c) {
1197
protocol_binary_response_get* rsp = (protocol_binary_response_get*)c->wbuf;
1198
char* key = binary_get_key(c);
1199
size_t nkey = c->binary_header.request.keylen;
1200
- protocol_binary_request_touch *t = (void *)&c->binary_header;
1201
- 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);
1202
1203
if (settings.verbose > 1) {
1204
int ii;
0 commit comments