the big NAT change
[oweals/gnunet.git] / src / util / resolver_api.c
index 6127badeb4b52aacd6c6fed93be6f822cec8b90e..4261f495c2a72e7aff2ca3a2225829ffd730d94a 100644 (file)
@@ -348,9 +348,14 @@ handle_response (void *cls,
 #endif
   if (msg == NULL)
     {
-      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-                  _("Timeout trying to resolve IP address `%s'.\n"),
-                 GNUNET_a2s ((const void*) &rh[1], rh->data_len));
+      if (NULL != rh->name_callback)
+       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                   _("Timeout trying to resolve IP address `%s'.\n"),
+                   GNUNET_a2s ((const void*) &rh[1], rh->data_len));
+      else
+       GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+                   _("Timeout trying to resolve hostname `%s'.\n"),
+                   (const char *) &rh[1]);
       if (rh->was_transmitted != GNUNET_SYSERR)
        {
          if (NULL != rh->name_callback)