• Philip Withnall's avatar
    gtlscertificate: Fix error reporting if a GError is not passed in · 292fd115
    Philip Withnall authored
    If the certificate constructor is called as:
       g_tls_certificate_new_from_pem (data, length, NULL);
    and PEM parsing fails for the private key, the function would have
    continued to try and create a certificate using a NULL key_pem value,
    which would have failed or crashed.
    
    Use g_propagate_error() correctly to avoid this.
    
    Coverity CID: 1325403
    292fd115
gtlscertificate.c 21.8 KB