Mercurial > dovecot > core-2.2
changeset 20227:6d553b24dcf6
dict-client: Fixed idle_msecs setting.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 31 May 2016 17:16:17 +0300 |
parents | 2fe183522f0e |
children | 7d7c2826ad0b |
files | src/lib-dict/dict-client.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-dict/dict-client.c Tue May 31 17:06:29 2016 +0300 +++ b/src/lib-dict/dict-client.c Tue May 31 17:16:17 2016 +0300 @@ -515,12 +515,12 @@ /* uri = [idle_msecs=<n>:] [<path>] ":" <uri> */ if (strncmp(uri, "idle_msecs=", 11) == 0) { - p = strchr(uri+14, ':'); + p = strchr(uri+11, ':'); if (p == NULL) { *error_r = t_strdup_printf("Invalid URI: %s", uri); return -1; } - if (str_to_uint(t_strdup_until(uri+14, p), &idle_msecs) < 0) { + if (str_to_uint(t_strdup_until(uri+11, p), &idle_msecs) < 0) { *error_r = "Invalid idle_msecs"; return -1; }