gnunet-svn
[Top][All Lists]
Advanced

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

[gnunet] 03/09: Fix compiler warning URI records & Resource leaks


From: gnunet
Subject: [gnunet] 03/09: Fix compiler warning URI records & Resource leaks
Date: Thu, 07 Dec 2023 15:51:12 +0100

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

sebi pushed a commit to branch master
in repository gnunet.

commit 241179d6bab21ace23b27d9fa47352295483e2d6
Author: Sebastian Nadler <sebastian.nadler@tum.de>
AuthorDate: Sun Dec 3 15:32:54 2023 +0100

    Fix compiler warning URI records & Resource leaks
---
 src/plugin/gnsrecord/plugin_gnsrecord_dns.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/plugin/gnsrecord/plugin_gnsrecord_dns.c 
b/src/plugin/gnsrecord/plugin_gnsrecord_dns.c
index 09595eafc..94b2686a1 100644
--- a/src/plugin/gnsrecord/plugin_gnsrecord_dns.c
+++ b/src/plugin/gnsrecord/plugin_gnsrecord_dns.c
@@ -672,9 +672,9 @@ dns_string_to_value (void *cls,
       off = 0;
 
       // TODO add more precise uri checking (RFC3986)
-      if (strstr (target, ":") == NULL || target[0] == 58 || target[strlen (
-                                                                      target)
-                                                                    - 1] == 58)
+      if (strstr (target, ":") == NULL ||
+          target[0] == 58 ||
+          target[strlen (target) - 1] == 58)
       {
         GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                     _ ("Failed to serialize URI record with target `%s'\n"),

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