From caa816c2f98908fb3cf2deeae48526d5bd3c88c1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=96zg=C3=BCr=20Kesim?= <oec-taler@kesim.org>
Date: Mon, 27 Dec 2021 10:31:08 +0100
Subject: [PATCH] logic fixed

---
 src/util/extension_age_restriction.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/util/extension_age_restriction.c b/src/util/extension_age_restriction.c
index fbdb796f2..c0efd7cd1 100644
--- a/src/util/extension_age_restriction.c
+++ b/src/util/extension_age_restriction.c
@@ -38,12 +38,12 @@ TALER_get_age_mask (const struct GNUNET_CONFIGURATION_Handle *cfg,
   char *groups;
   enum TALER_Extension_ReturnValue ret = TALER_Extension_ERROR_SYS;
 
-  if ((GNUNET_NO == GNUNET_CONFIGURATION_have_value (cfg,
-                                                     TALER_EXTENSION_SECTION_AGE_RESTRICTION,
-                                                     "ENABLED")) ||
-      (GNUNET_NO == GNUNET_CONFIGURATION_get_value_yesno (cfg,
-                                                          TALER_EXTENSION_SECTION_AGE_RESTRICTION,
-                                                          "ENABLED")))
+  if ((GNUNET_YES != GNUNET_CONFIGURATION_have_value (cfg,
+                                                      TALER_EXTENSION_SECTION_AGE_RESTRICTION,
+                                                      "ENABLED")) ||
+      (GNUNET_YES != GNUNET_CONFIGURATION_get_value_yesno (cfg,
+                                                           TALER_EXTENSION_SECTION_AGE_RESTRICTION,
+                                                           "ENABLED")))
   {
     /* Age restriction is not enabled */
     mask->mask = 0;