X-Git-Url: https://pd.if.org/git/?p=zpackage;a=blobdiff_plain;f=crypto%2Fpem.c;h=490bc0c3dd255cdf9e167d1ccca7652abe650b8f;hp=7d273f9f694815889c5ff2b6f6ce0b9642cc58cf;hb=4b448fbc77510c589cc7f367c05bef63acc07858;hpb=4714f8eb39f360325048dcfa06da048a0c4b2be9 diff --git a/crypto/pem.c b/crypto/pem.c index 7d273f9..490bc0c 100644 --- a/crypto/pem.c +++ b/crypto/pem.c @@ -336,10 +336,10 @@ int tls_load_root_certificates(struct TLSContext *tls, do { unsigned char *data = tls_pem_decode(pem_buffer, pem_size, idx++, &len); - if ((!data) || (!len)) + if (!data || !len) { break; - struct TLSCertificate *cert = - asn1_parse(NULL, data, len, 0); + } + struct TLSCertificate *cert = asn1_parse(NULL, data, len, 0); if (cert) { if (cert->version == 2) { if (cert->priv) {