[glib-networking] gnutls: fix GTlsConnectionGnutls:use-system-certdb



commit f8d0a44467942c9236dadebb573dcf4ea406ec7e
Author: Dan Winship <danw gnome org>
Date:   Wed May 2 09:05:22 2012 -0400

    gnutls: fix GTlsConnectionGnutls:use-system-certdb
    
    Setting use-system-certdb to FALSE ended up being a no-op, because it
    wasn't clearing priv->database_is_unset, so
    GTlsConnection:tls-database would end up getting initialized to the
    default database later on.

 tls/gnutls/gtlsconnection-gnutls.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index 70440e1..b8fc86c 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -374,6 +374,7 @@ g_tls_connection_gnutls_set_property (GObject      *object,
               gnutls->priv->database = g_tls_backend_get_default_database (backend);
             }
           gnutls->priv->is_system_certdb = system_certdb;
+          gnutls->priv->database_is_unset = FALSE;
         }
       break;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]