From: Jouni Malinen Date: Tue, 22 Dec 2015 22:01:25 +0000 (+0200) Subject: TLS: Move variable declaration to the beginning of the block X-Git-Tag: hostap_2_6~1114 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02683830b5a0b85b0d1594096060327f3c8a1e7d;p=thirdparty%2Fhostap.git TLS: Move variable declaration to the beginning of the block Signed-off-by: Jouni Malinen --- diff --git a/src/tls/x509v3.c b/src/tls/x509v3.c index 5521390ad..55555254e 100644 --- a/src/tls/x509v3.c +++ b/src/tls/x509v3.c @@ -1339,6 +1339,7 @@ static int x509_parse_tbs_certificate(const u8 *buf, size_t len, size_t left; char sbuf[128]; unsigned long value; + const u8 *subject_dn; /* tbsCertificate TBSCertificate ::= SEQUENCE */ if (asn1_get_next(buf, len, &hdr) < 0 || @@ -1436,7 +1437,6 @@ static int x509_parse_tbs_certificate(const u8 *buf, size_t len, return -1; /* subject Name */ - const u8 *subject_dn; subject_dn = pos; if (x509_parse_name(pos, end - pos, &cert->subject, &pos)) return -1;