gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnunet] Main GNUnet code base. branch master updated. init


From: gitolite
Subject: [GNUnet-SVN] [gnunet] Main GNUnet code base. branch master updated. initial-import-from-subversion-38251-14-g8887bab
Date: Tue, 22 Nov 2016 16:08:40 +0100 (CET)

The branch, master has been updated
       via  8887babc9465e6260e9fe7643165991993dd2cc5 (commit)
      from  0fa8cc7c2ec1d7d7d1a901a84b7740475f8b4648 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 8887babc9465e6260e9fe7643165991993dd2cc5
Author: lurchi <address@hidden>
Date:   Tue Nov 22 15:36:35 2016 +0100

    fix creation of PHONE records with gnunet-namestore
    
    The string size of the line/port part of a phone record value is 103 
(base32-encoded GNUNET_HashCode). Until now it was assumed to be 128 bytes long

-----------------------------------------------------------------------

Summary of changes:
 src/conversation/plugin_gnsrecord_conversation.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conversation/plugin_gnsrecord_conversation.c 
b/src/conversation/plugin_gnsrecord_conversation.c
index e2bcf7e..91cae72 100644
--- a/src/conversation/plugin_gnsrecord_conversation.c
+++ b/src/conversation/plugin_gnsrecord_conversation.c
@@ -118,12 +118,12 @@ conversation_string_to_value (void *cls,
   case GNUNET_GNSRECORD_TYPE_PHONE:
     {
       struct GNUNET_CONVERSATION_PhoneRecord *pr;
-      char line_port[128];
+      char line_port[103];
       const char *dash;
       struct GNUNET_PeerIdentity peer;
 
       if ( (NULL == (dash = strchr (s, '-'))) ||
-          (1 != sscanf (s, "%128s-", line_port)) ||
+          (1 != sscanf (s, "%103s-", line_port)) ||
           (GNUNET_OK !=
            GNUNET_CRYPTO_eddsa_public_key_from_string (dash + 1,
                                                         strlen (dash + 1),


hooks/post-receive
-- 
Main GNUnet code base.



reply via email to

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