Commit e7a4e805 authored by Patrick Griffis's avatar Patrick Griffis Committed by Patrick Griffis

Fix incorrect critical

It should warn when the URI is already set not the reverse.
parent 7b6eb0a5
Pipeline #121642 passed with stage
in 1 minute and 39 seconds
......@@ -274,7 +274,7 @@ g_tls_certificate_gnutls_set_property (GObject *object,
if (!string)
break;
g_return_if_fail (gnutls->have_cert == FALSE);
g_return_if_fail (gnutls->pkcs11_uri);
g_return_if_fail (!gnutls->pkcs11_uri);
gnutls->pkcs11_uri = g_strdup (string);
......@@ -297,7 +297,7 @@ g_tls_certificate_gnutls_set_property (GObject *object,
if (!string)
break;
g_return_if_fail (gnutls->have_key == FALSE);
g_return_if_fail (gnutls->private_key_pkcs11_uri);
g_return_if_fail (!gnutls->private_key_pkcs11_uri);
gnutls->private_key_pkcs11_uri = g_strdup (string);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment