Mercurial > dovecot > core-2.2
changeset 18953:f73ed907fe64
lib-http auth: Fixed segfault occurring in http_auth_challenge_copy() when there are no parameters.
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Tue, 18 Aug 2015 20:39:24 +0300 |
parents | 4d7a83ddb644 |
children | 9d530e890669 |
files | src/lib-http/http-auth.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-auth.c Tue Aug 18 20:39:06 2015 +0300 +++ b/src/lib-http/http-auth.c Tue Aug 18 20:39:24 2015 +0300 @@ -370,6 +370,9 @@ { const struct http_auth_param *sparam; + if (!array_is_created(src)) + return; + p_array_init(dst, pool, 4); array_foreach(src, sparam) { struct http_auth_param nparam;