Mercurial > dovecot > core-2.2
diff src/lib-oauth2/oauth2-private.h @ 21738:29066a72703a
lib-oauth2: Fix memory leak if HTTP URL parsing fails.
Also delay calling the callback. The callers don't necessarily expect an
immediate callback (auth/db-oauth2.c doesn't).
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 16 Mar 2017 01:12:57 +0200 |
parents | f6d27a985066 |
children | cb108f786fb4 |
line wrap: on
line diff
--- a/src/lib-oauth2/oauth2-private.h Thu Mar 16 00:54:44 2017 +0200 +++ b/src/lib-oauth2/oauth2-private.h Thu Mar 16 01:12:57 2017 +0200 @@ -11,6 +11,9 @@ struct istream *is; struct io *io; + const char *delayed_error; + struct timeout *to_delayed_error; + const char *username; void (*json_parsed_cb)(struct oauth2_request*, bool success,