[libgovirt] proxy: Don't set RestProxy::ssl-ca-file from ssl_ca_file_changed()
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgovirt] proxy: Don't set RestProxy::ssl-ca-file from ssl_ca_file_changed()
- Date: Thu, 6 Aug 2015 16:31:36 +0000 (UTC)
commit f59201c985f696959680ba346c37430dddeedbf8
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Jul 28 13:26:16 2015 +0200
proxy: Don't set RestProxy::ssl-ca-file from ssl_ca_file_changed()
The only purpose of our notify::ssl-ca-file handler is to cleanup the
temporary file we created when the ssl-ca-file is set externally. Now
that we have a separate ovirt_proxy_free_tmp_ca_file(), we can call that
rather than relying on ovirt_proxy_set_tmp_ca_file(proxy, NULL); to
achieve that.
govirt/ovirt-proxy.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/govirt/ovirt-proxy.c b/govirt/ovirt-proxy.c
index 146143c..887d15b 100644
--- a/govirt/ovirt-proxy.c
+++ b/govirt/ovirt-proxy.c
@@ -920,7 +920,7 @@ static void ssl_ca_file_changed(GObject *gobject,
proxy->priv->setting_ca_file = FALSE;
return;
}
- ovirt_proxy_set_tmp_ca_file(OVIRT_PROXY(gobject), NULL);
+ ovirt_proxy_free_tmp_ca_file(OVIRT_PROXY(gobject));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]