From a0b5391e77ed782682a8c4ceac64e4e579f9a8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Tue, 13 Apr 2010 16:21:21 +0000 Subject: [PATCH] Fix var declarations mixed in source git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2721 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/response.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/response.c b/src/response.c index 57f55fe7..e829cfd8 100644 --- a/src/response.c +++ b/src/response.c @@ -136,6 +136,8 @@ static void https_add_ssl_entries(connection *con) { X509 *xs; X509_NAME *xn; X509_NAME_ENTRY *xe; + int i, nentries; + if ( SSL_get_verify_result(con->ssl) != X509_V_OK || !(xs = SSL_get_peer_certificate(con->ssl)) @@ -144,7 +146,7 @@ static void https_add_ssl_entries(connection *con) { } xn = X509_get_subject_name(xs); - for (int i = 0, nentries = X509_NAME_entry_count(xn); i < nentries; ++i) { + for (i = 0, nentries = X509_NAME_entry_count(xn); i < nentries; ++i) { int xobjnid; const char * xobjsn; data_string *envds;