mirror of
https://github.com/systemd/systemd
synced 2024-09-16 06:43:18 +00:00
journal-remote: fix certificate status memory leak
The output of gnutls_certificate_verification_status_print() needs to be freed. Noticed this while staring at verify_cert_authorized() to see what could possibly confuse gcc5 on armv7hl to segfault during compilation.
This commit is contained in:
parent
a88abde721
commit
9c3cf9693a
Notes:
Lennart Poettering
2015-05-21 17:08:23 +02:00
Backport: bugfix
|
@ -179,6 +179,7 @@ static int verify_cert_authorized(gnutls_session_t session) {
|
|||
return log_error_errno(r, "gnutls_certificate_verification_status_print failed: %m");
|
||||
|
||||
log_info("Certificate status: %s", out.data);
|
||||
gnutls_free(out.data);
|
||||
|
||||
return status == 0 ? 0 : -EPERM;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue