gnunet-svn
[Top][All Lists]
Advanced

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

[taler-anastasis] branch master updated: better logging, if regex is ill


From: gnunet
Subject: [taler-anastasis] branch master updated: better logging, if regex is ill-formed, accept anything
Date: Wed, 19 May 2021 18:55:03 +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 3d9cd3c  better logging, if regex is ill-formed, accept anything
3d9cd3c is described below

commit 3d9cd3ca8ab2f87b22a95b13a612c6d32c8d126d
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed May 19 18:55:01 2021 +0200

    better logging, if regex is ill-formed, accept anything
---
 src/reducer/anastasis_api_redux.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/reducer/anastasis_api_redux.c 
b/src/reducer/anastasis_api_redux.c
index 14712d8..01c9a79 100644
--- a/src/reducer/anastasis_api_redux.c
+++ b/src/reducer/anastasis_api_redux.c
@@ -795,8 +795,9 @@ validate_regex (const char *input,
   {
     GNUNET_break (0);
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "Failed to compile regular expression.");
-    return false;
+                "Failed to compile regular expression `%s'.",
+                regexp);
+    return true;
   }
   /* check if input has correct form */
   if (0 != regexec (&regex,

-- 
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]