gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] branch master updated: fix hostname check


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: fix hostname check
Date: Mon, 16 Apr 2018 13:09:42 +0200

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

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 6e69bdb7c fix hostname check
6e69bdb7c is described below

commit 6e69bdb7ce01dcbc9d6be5f2da4555b270a1cefe
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Apr 16 13:09:30 2018 +0200

    fix hostname check
---
 src/namestore/gnunet-zoneimport.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/namestore/gnunet-zoneimport.c 
b/src/namestore/gnunet-zoneimport.c
index 2af63dc3d..10d9cb4b6 100644
--- a/src/namestore/gnunet-zoneimport.c
+++ b/src/namestore/gnunet-zoneimport.c
@@ -1117,18 +1117,15 @@ queue (const char *hostname)
     return;
   }
   for (zone = zone_head; NULL != zone; zone = zone->next)
-    if ( (0 == strncmp (zone->domain,
-                        hostname,
-                        dot - hostname)) &&
-         (strlen (zone->domain) == dot - hostname) )
+    if (0 == strcmp (zone->domain,
+                     dot + 1))
       break;
   if (NULL == zone)
   {
     rejects++;
     GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "Domain name `%.*s' not in ego list!\n",
-                (int) (dot - hostname),
-                hostname);
+                "Domain name `%s' not in ego list!\n",
+                dot + 1);
     return;
   }
   q.name = (char *) hostname;

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

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