summaryrefslogtreecommitdiff
path: root/src/authorization/anastasis_authorization_plugin_file.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-09-26 19:24:14 +0200
committerChristian Grothoff <christian@grothoff.org>2021-09-26 19:24:14 +0200
commitf2dbb45c194cfc41395b7a13a828e24ceeb7bc89 (patch)
treedfb104db289c3c3f306bbf0ec3a956631e412a04 /src/authorization/anastasis_authorization_plugin_file.c
parentf70f4ce7e052569d171af503034811fc0dfe9d19 (diff)
downloadanastasis-f2dbb45c194cfc41395b7a13a828e24ceeb7bc89.tar.gz
anastasis-f2dbb45c194cfc41395b7a13a828e24ceeb7bc89.tar.bz2
anastasis-f2dbb45c194cfc41395b7a13a828e24ceeb7bc89.zip
starting with TOTP plugin for #7023
Diffstat (limited to 'src/authorization/anastasis_authorization_plugin_file.c')
-rw-r--r--src/authorization/anastasis_authorization_plugin_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/authorization/anastasis_authorization_plugin_file.c b/src/authorization/anastasis_authorization_plugin_file.c
index 66dbbe1..d41eaa3 100644
--- a/src/authorization/anastasis_authorization_plugin_file.c
+++ b/src/authorization/anastasis_authorization_plugin_file.c
@@ -86,7 +86,7 @@ file_validate (void *cls,
(void) cls;
if (NULL == data)
- return GNUNET_NO;
+ return GNUNET_SYSERR;
filename = GNUNET_STRINGS_data_to_string_alloc (data,
data_length);
flag = false;
@@ -100,7 +100,7 @@ file_validate (void *cls,
}
}
if (flag)
- return GNUNET_NO;
+ return GNUNET_SYSERR;
GNUNET_free (filename);
return GNUNET_OK;
}