From 6fa9b31bbf111dbb99672595c8295cf77a3bbd5d Mon Sep 17 00:00:00 2001 From: dormando Date: Sat, 14 Oct 2017 18:41:59 -0700 Subject: extstore: minor bugfixes refuse to start if inline_ascii_resp is enabled, due to it breaking the item header objects. actually use iovst value passed during binprot requests make the item flags converters the same (strtoul can eat leading space). need to replace them with a function still. --- storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage.c') diff --git a/storage.c b/storage.c index 8e8b33f..eb0ea95 100644 --- a/storage.c +++ b/storage.c @@ -42,7 +42,7 @@ int lru_maintainer_store(void *storage, const int clsid) { (item_age == 0 || current_time - it->time > item_age)) { // FIXME: flag conversion again if (settings.inline_ascii_response) { - flags = (uint32_t) strtoul(ITEM_suffix(it)+1, (char **) NULL, 10); + flags = (uint32_t) strtoul(ITEM_suffix(it), (char **) NULL, 10); } else if (it->nsuffix > 0) { flags = *((uint32_t *)ITEM_suffix(it)); } else { -- cgit v1.2.1