[glib/mcatanzaro/verify-chain-extra-check] gtlsdatabase: remove duplicate precondition check
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/mcatanzaro/verify-chain-extra-check] gtlsdatabase: remove duplicate precondition check
- Date: Mon, 7 Dec 2020 17:12:15 +0000 (UTC)
commit 855a22e1654eec57ce28292f12bac5bdb1a5717f
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Dec 7 11:11:37 2020 -0600
gtlsdatabase: remove duplicate precondition check
This check is the same as the check on the line above.
gio/gtlsdatabase.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/gio/gtlsdatabase.c b/gio/gtlsdatabase.c
index 9341206f1..d7dcf4bbe 100644
--- a/gio/gtlsdatabase.c
+++ b/gio/gtlsdatabase.c
@@ -516,8 +516,6 @@ g_tls_database_verify_chain (GTlsDatabase *self,
GError **error)
{
g_return_val_if_fail (G_IS_TLS_DATABASE (self), G_TLS_CERTIFICATE_GENERIC_ERROR);
- g_return_val_if_fail (G_IS_TLS_DATABASE (self),
- G_TLS_CERTIFICATE_GENERIC_ERROR);
g_return_val_if_fail (G_IS_TLS_CERTIFICATE (chain),
G_TLS_CERTIFICATE_GENERIC_ERROR);
g_return_val_if_fail (purpose, G_TLS_CERTIFICATE_GENERIC_ERROR);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]