From: Timo Sirainen Date: Tue, 22 Nov 2016 08:59:36 +0000 (+0200) Subject: dict-client: dict_lookup*() deleted the first byte of the result. X-Git-Tag: 2.2.27~77 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c647daf549b9ebbeef4e9ead75b91ad4ba5a6038;p=thirdparty%2Fdovecot%2Fcore.git dict-client: dict_lookup*() deleted the first byte of the result. --- diff --git a/src/lib-dict/dict-client.c b/src/lib-dict/dict-client.c index 24dd7e5195..847a98da7e 100644 --- a/src/lib-dict/dict-client.c +++ b/src/lib-dict/dict-client.c @@ -912,7 +912,7 @@ client_dict_lookup_async_callback(struct client_dict_cmd *cmd, result.error = error; } else switch (reply) { case DICT_PROTOCOL_REPLY_OK: - result.value = value + 1; + result.value = value; result.ret = 1; break; case DICT_PROTOCOL_REPLY_NOTFOUND: