Mercurial > dovecot > core-2.2
comparison 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 |
comparison
equal
deleted
inserted
replaced
21737:036d9f649c8b | 21738:29066a72703a |
---|---|
8 const struct oauth2_settings *set; | 8 const struct oauth2_settings *set; |
9 struct http_client_request *req; | 9 struct http_client_request *req; |
10 struct json_parser *parser; | 10 struct json_parser *parser; |
11 struct istream *is; | 11 struct istream *is; |
12 struct io *io; | 12 struct io *io; |
13 | |
14 const char *delayed_error; | |
15 struct timeout *to_delayed_error; | |
13 | 16 |
14 const char *username; | 17 const char *username; |
15 | 18 |
16 void (*json_parsed_cb)(struct oauth2_request*, bool success, | 19 void (*json_parsed_cb)(struct oauth2_request*, bool success, |
17 const char *error); | 20 const char *error); |