X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Futil%2Fresolver_api.c;h=4261f495c2a72e7aff2ca3a2225829ffd730d94a;hb=8a3016481ba6aeb36de3950a56e641dda53ca544;hp=6127badeb4b52aacd6c6fed93be6f822cec8b90e;hpb=61a008c4e471cd5081d5c2871949da779246a868;p=oweals%2Fgnunet.git diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index 6127badeb..4261f495c 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c @@ -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)