From: Schanzenbach, Martin Date: Mon, 19 Dec 2016 12:41:16 +0000 (+0100) Subject: -fix X-Git-Tag: gnunet-0.11.0rc0~24^2~104 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b34ecee66712dd181d37d4f6f6a623cea2dc9df7;p=oweals%2Fgnunet.git -fix --- diff --git a/src/credential/gnunet-service-credential.c b/src/credential/gnunet-service-credential.c index 55907e0d7..942b38652 100644 --- a/src/credential/gnunet-service-credential.c +++ b/src/credential/gnunet-service-credential.c @@ -805,6 +805,15 @@ handle_credential_query (void* cls, vrh->lookup_request = NULL; cred_record_count = 0; + + if (0 == rd_count) + { + GNUNET_log (GNUNET_ERROR_TYPE_ERROR, + "No credentials found\n"); + send_lookup_response (vrh); + return; + } + for (i=0; i < rd_count; i++) { if (GNUNET_GNSRECORD_TYPE_CREDENTIAL != rd[i].record_type)