diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2015-12-22 22:01:25 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-12-23 22:54:30 (GMT) |
commit | 02683830b5a0b85b0d1594096060327f3c8a1e7d (patch) | |
tree | aa520f34bdb7378dfcea074a3061c4d706f149d0 /src/tls | |
parent | 98d125cafa570ee003a6719b13de9a4e2866bd68 (diff) | |
download | hostap-02683830b5a0b85b0d1594096060327f3c8a1e7d.zip hostap-02683830b5a0b85b0d1594096060327f3c8a1e7d.tar.gz hostap-02683830b5a0b85b0d1594096060327f3c8a1e7d.tar.bz2 |
TLS: Move variable declaration to the beginning of the block
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/x509v3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/x509v3.c b/src/tls/x509v3.c index 5521390..5555525 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; |