mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
BUG/MINOR: ssl: Fix potential leak in cli_parse_update_ocsp_response
In some extremely unlikely case (or even impossible for now), we might exit cli_parse_update_ocsp_response without raising an error but with a filled 'err' buffer. It was not properly free'd. It does not need to be backported.
This commit is contained in:
parent
ae5187721f
commit
d32c8e3ccb
1 changed files with 2 additions and 0 deletions
|
|
@ -1397,6 +1397,8 @@ static int cli_parse_update_ocsp_response(char **args, char *payload, struct app
|
|||
|
||||
task_wakeup(ocsp_update_task, TASK_WOKEN_MSG);
|
||||
|
||||
free(err);
|
||||
|
||||
return 0;
|
||||
|
||||
end:
|
||||
|
|
|
|||
Loading…
Reference in a new issue