]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dict-client: dict_lookup*() deleted the first byte of the result.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 22 Nov 2016 08:59:36 +0000 (10:59 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 22 Nov 2016 09:01:04 +0000 (11:01 +0200)
src/lib-dict/dict-client.c

index 24dd7e5195d21e6d867b9636e6f986d2a1edd9f1..847a98da7e7aceb156768ed2fde53684088b1ec5 100644 (file)
@@ -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: