mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 22:28:41 -04:00
BUG/MINOR: ssl: Memory leak of AUTHORITY_KEYID struct when loading issuer
When calling ssl_get0_issuer_chain, if akid is not NULL but its keyid is, then the AUTHORITY_KEYID is not freed. This patch can be backported to all stable branches.
This commit is contained in:
parent
a2c21db155
commit
1621dc1cc5
1 changed files with 1 additions and 1 deletions
|
|
@ -7231,8 +7231,8 @@ int ssl_load_global_issuer_from_BIO(BIO *in, char *fp, char **err)
|
|||
break;
|
||||
}
|
||||
}
|
||||
AUTHORITY_KEYID_free(akid);
|
||||
}
|
||||
AUTHORITY_KEYID_free(akid);
|
||||
return issuer;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue