Skip to content

gtlscertificate: Hold a ref on the root certificate when building chains

Philip Withnall requested to merge pwithnall/glib:tls-certificate-refs into main

This is unlikely to be a bug in practice, as the certificate pointed to by root should have a ref held on it as the issuer of another certificate in the chain.

However, we can’t guarantee that’s how the GTlsCertificate implementation behaves, so keep a temporary ref on root until it’s no longer needed.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Coverity CID: #1489985

Merge request reports