]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
tls-peer: Fix parsing of intermediate CA certificates
authorTobias Brunner <tobias@strongswan.org>
Tue, 25 Aug 2020 14:11:59 +0000 (16:11 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 10:45:44 +0000 (11:45 +0100)
src/libtls/tls_peer.c

index dfc15cc05f6b7156cf77ee6f3c845970b012d330..6bec0219b5d77ac0a9699a3a88c39d5bc41e45a5 100644 (file)
@@ -469,12 +469,10 @@ static status_t process_certificate(private_tls_peer_t *this,
                {
                        if (!certs->read_data16(certs, &data))
                        {
-                               DBG1(DBG_TLS, "reading extension field of certificate failed",
-                                        &data);
+                               DBG1(DBG_TLS, "failed to read extensions of CertificateEntry");
                                this->alert->add(this->alert, TLS_FATAL, TLS_DECODE_ERROR);
                                return NEED_MORE;
                        }
-                       break;
                }
        }
        certs->destroy(certs);