kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 0294212a3cc619caa600551b7437688eacdbe5d4
parent 318647945fb62999178e4fb83f1f5cfeb2d55923
Author: Joris Vink <joris@coders.se>
Date:   Sun, 21 Feb 2016 18:29:06 +0100

Do not free results from http_request_header().

Diffstat:
src/auth.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/auth.c b/src/auth.c @@ -146,16 +146,12 @@ kore_auth_cookie(struct http_request *req, struct kore_auth *auth) static int kore_auth_header(struct http_request *req, struct kore_auth *auth) { - int r; char *header; if (!http_request_header(req, auth->value, &header)) return (KORE_RESULT_ERROR); - r = kore_validator_check(req, auth->validator, header); - kore_mem_free(header); - - return (r); + return (kore_validator_check(req, auth->validator, header)); } static int