mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-01 04:40:54 -05:00
BUG/MINOR: ssl: ssl_sock_load_issuer_file_into_ckch memory leak
"set ssl cert <filename.issuer> <payload>" CLI command must free previous context. This patch should be backport to 2.1
This commit is contained in:
parent
0667faebcf
commit
eb73dc34bb
1 changed files with 4 additions and 1 deletions
|
|
@ -3237,8 +3237,11 @@ static int ssl_sock_load_issuer_file_into_ckch(const char *path, char *buf, stru
|
|||
err && *err ? *err : "", path);
|
||||
goto end;
|
||||
}
|
||||
ret = 0;
|
||||
/* no error, fill ckch with new context, old context must be free */
|
||||
if (ckch->ocsp_issuer)
|
||||
X509_free(ckch->ocsp_issuer);
|
||||
ckch->ocsp_issuer = issuer;
|
||||
ret = 0;
|
||||
|
||||
end:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue