gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] branch master updated: sketch


From: gnunet
Subject: [taler-anastasis] branch master updated: sketch
Date: Fri, 23 Oct 2020 18:55:49 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository anastasis.

The following commit(s) were added to refs/heads/master by this push:
     new 5164474  sketch
5164474 is described below

commit 51644743757e875b38e9786d0873fc0e9fa8abce
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Oct 23 18:55:44 2020 +0200

    sketch
---
 src/backend/anastasis_authorization_plugin_file.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/backend/anastasis_authorization_plugin_file.c 
b/src/backend/anastasis_authorization_plugin_file.c
index 905deb9..6841a4d 100644
--- a/src/backend/anastasis_authorization_plugin_file.c
+++ b/src/backend/anastasis_authorization_plugin_file.c
@@ -82,7 +82,7 @@ file_validate (void *cls,
   int flag = 0;
   for (i = 0; i<strlen (data_string); i++)
   {
-    if ((data_string[i] == ' ')|| (data_string[i] == '/'))
+    if ((data_string[i] == ' ') || (data_string[i] == '/'))
     {
       flag = 1;
       break;
@@ -140,7 +140,9 @@ static enum ANASTASIS_AUTHORIZATION_Result
 file_process (struct ANASTASIS_AUTHORIZATION_State *as,
               struct MHD_Connection *connection)
 {
+  MHD_RESULT_Result mres;
   FILE *f = fopen (as->data, "w");
+
   if (f == NULL)
   {
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -152,9 +154,17 @@ file_process (struct ANASTASIS_AUTHORIZATION_State *as,
   if (0 >= fprintf (f, "%lu", as->code))
   {
     fclose (f);
+    mres = MHD_queue_response (connection,
+                               foobar);
+    if (MHD_YES != mres)
+      return ANASTASIS_AUTHORIZATION_RES_FAILED_REPLY_FAILED;
     return ANASTASIS_AUTHORIZATION_RES_FAILED;
   }
   fclose (f);
+  mres = MHD_queue_response (connection,
+                             foobar);
+  if (MHD_YES != mres)
+    return ANASTASIS_AUTHORIZATION_RES_SUCCESS_REPLY_FAILED;
   return ANASTASIS_AUTHORIZATION_RES_SUCCESS;
 }
 
@@ -194,6 +204,7 @@ libanastasis_plugin_authorization_file_init (void *cls)
   return plugin;
 }
 
+
 /**
  * Unload authorization plugin
  *

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]