# HG changeset patch # User Stephan Bosch # Date 1439919564 -10800 # Node ID f73ed907fe64279559ee18bf4b700d0b5d22016c # Parent 4d7a83ddb64455cb1738c53c8c6f90c7ee20a752 lib-http auth: Fixed segfault occurring in http_auth_challenge_copy() when there are no parameters. diff -r 4d7a83ddb644 -r f73ed907fe64 src/lib-http/http-auth.c --- 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;