mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02: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
@ -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…
x
Reference in New Issue
Block a user