dovecot-2.2: lib-http auth: Fixed segfault occurring in http_aut...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Aug 18 18:02:25 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/f73ed907fe64
changeset: 18953:f73ed907fe64
user: Stephan Bosch <stephan at rename-it.nl>
date: Tue Aug 18 20:39:24 2015 +0300
description:
lib-http auth: Fixed segfault occurring in http_auth_challenge_copy() when there are no parameters.
diffstat:
src/lib-http/http-auth.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
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;
More information about the dovecot-cvs
mailing list