[balsa/gtk3] Reduce scope of variable
- From: Peter Bloomfield <PeterB src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Reduce scope of variable
- Date: Sun, 22 Jul 2012 19:42:56 +0000 (UTC)
commit 259cf68e2925e40f358c6add3b9e6f3508f02b8c
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Jul 22 15:12:07 2012 -0400
Reduce scope of variable
* libbalsa/imap/imap-tls.c (imap_check_server_identity): reduce
scope of variable.
ChangeLog | 5 +++++
libbalsa/imap/imap-tls.c | 4 +++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0189547..7d63dde 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-07-22 Peter Bloomfield
+ * libbalsa/imap/imap-tls.c (imap_check_server_identity): reduce
+ scope of variable.
+
+2012-07-22 Peter Bloomfield
+
* libbalsa/imap/imap-handle.c (imap_handle_disconnect),
(imap_cmd_step), (imap_get_sequence), (ir_get_append_copy_uids),
(ir_status), (ir_quota), (ir_body_extension),
diff --git a/libbalsa/imap/imap-tls.c b/libbalsa/imap/imap-tls.c
index dfc6cce..3694d15 100644
--- a/libbalsa/imap/imap-tls.c
+++ b/libbalsa/imap/imap-tls.c
@@ -237,7 +237,7 @@ imap_check_server_identity(SSL *ssl, const char *host,
long vfy_result;
X509 *cert;
X509_NAME *subj;
- int ok, i, host_len;
+ int ok, host_len;
gchar *colon;
int has_extension_with_dns_name = 0;
STACK_OF(GENERAL_NAME) *altnames;
@@ -256,6 +256,8 @@ imap_check_server_identity(SSL *ssl, const char *host,
altnames = X509_get_ext_d2i(cert, NID_subject_alt_name, NULL, NULL);
if (altnames) {
+ int i;
+
for (i=0; i< sk_GENERAL_NAME_num(altnames); i++) {
const GENERAL_NAME *name = sk_GENERAL_NAME_value(altnames, i);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]