diff --git a/src/protocol/data/memcache/response.c b/src/protocol/data/memcache/response.c index e4dd16efc..a698b49a0 100644 --- a/src/protocol/data/memcache/response.c +++ b/src/protocol/data/memcache/response.c @@ -163,6 +163,10 @@ response_return_all(struct response **response) struct response *nr, *rsp = *response; + if (rsp == NULL) { + return; + } + nr = STAILQ_NEXT(rsp, next); while (rsp != NULL) { nr = STAILQ_NEXT(rsp, next);