gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r33599 - gnunet-gtk/src/conversation


From: gnunet
Subject: [GNUnet-SVN] r33599 - gnunet-gtk/src/conversation
Date: Sun, 8 Jun 2014 12:18:07 +0200

Author: grothoff
Date: 2014-06-08 12:18:07 +0200 (Sun, 08 Jun 2014)
New Revision: 33599

Modified:
   gnunet-gtk/src/conversation/gnunet-conversation-gtk_import.c
Log:
implement #3440

Modified: gnunet-gtk/src/conversation/gnunet-conversation-gtk_import.c
===================================================================
--- gnunet-gtk/src/conversation/gnunet-conversation-gtk_import.c        
2014-06-07 23:33:46 UTC (rev 33598)
+++ gnunet-gtk/src/conversation/gnunet-conversation-gtk_import.c        
2014-06-08 10:18:07 UTC (rev 33599)
@@ -151,9 +151,15 @@
 
   /* if we got a .zkey address, we create a PKEY record,
      otherwise a CNAME record */
-  if (GNUNET_OK ==
-      GNUNET_GNSRECORD_zkey_to_pkey (address,
-                                     &rvalue))
+  if ( (GNUNET_OK ==
+        GNUNET_GNSRECORD_zkey_to_pkey (address,
+                                       &rvalue)) ||
+       ( (0 == strncasecmp (address,
+                            "phone.",
+                            strlen ("phone.")) ) &&
+         (GNUNET_OK ==
+          GNUNET_GNSRECORD_zkey_to_pkey (&address[strlen ("phone.")],
+                                         &rvalue)) ) )
   {
     type = GNUNET_GNSRECORD_TYPE_PKEY;
     value = &rvalue;




reply via email to

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