[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-anastasis] 01/03: fix ftbs
From: |
gnunet |
Subject: |
[taler-anastasis] 01/03: fix ftbs |
Date: |
Tue, 22 Dec 2020 13:30:28 +0100 |
This is an automated email from the git hooks/post-receive script.
dennis-neufeld pushed a commit to branch master
in repository anastasis.
commit b90416f0ab93045d340973aa40247d7090e4c82f
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Mon Dec 21 16:56:33 2020 +0100
fix ftbs
---
src/lib/Makefile.am | 1 +
src/lib/anastasis_api_redux.c | 11 ++++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
index 91e5e1f..cbab0b2 100644
--- a/src/lib/Makefile.am
+++ b/src/lib/Makefile.am
@@ -122,6 +122,7 @@ libanastasisredux_la_LIBADD = \
-ltalermerchant \
-ltalerjson \
-ljansson \
+ -ldl \
$(XLIB)
diff --git a/src/lib/anastasis_api_redux.c b/src/lib/anastasis_api_redux.c
index 72809ff..38f09de 100644
--- a/src/lib/anastasis_api_redux.c
+++ b/src/lib/anastasis_api_redux.c
@@ -27,6 +27,7 @@
#include "anastasis_error_codes.h"
#include <taler/taler_json_lib.h>
#include "anastasis_api_redux.h"
+#include <dlfcn.h>
#define GENERATE_STRING(STRING) #STRING,
@@ -916,8 +917,8 @@ enter_user_attributes (json_t *state,
"identity_attributes");
GNUNET_assert (NULL != attributes);
- *required_attributes = json_object_get (state,
- "required_attributes");
+ required_attributes = json_object_get (state,
+ "required_attributes");
GNUNET_assert (json_is_array (required_attributes));
json_array_foreach (required_attributes, index, required_attribute)
{
@@ -931,10 +932,10 @@ enter_user_attributes (json_t *state,
"name"));
attribute_value = json_string_value (json_object_get (attributes,
name));
- regexp = json_string_value (json_object_get (attribute,
+ regexp = json_string_value (json_object_get (required_attribute,
"validation-regex"));
if ( (NULL != regexp) &&
- (! validate_regex (value,
+ (! validate_regex (attribute_value,
regexp)) )
{
json_t *error = json_pack (
@@ -950,7 +951,7 @@ enter_user_attributes (json_t *state,
json_decref (error);
return NULL;
}
- reglog = json_string_value (json_object_get (attribute,
+ reglog = json_string_value (json_object_get (attribute_value,
"validation-logic"));
if ( (NULL != reglog) &&
(NULL != (regfun = dlsym (RTLD_DEFAULT,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.