summaryrefslogtreecommitdiff
path: root/src/credential
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-19 13:41:16 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-19 13:41:16 +0100
commitb34ecee66712dd181d37d4f6f6a623cea2dc9df7 (patch)
tree093982a21a346325d0b82249b660f9ca63fd445d /src/credential
parent8ce40b5e7381b44c847dedc0d1fd1ec4e56ba856 (diff)
-fix
Diffstat (limited to 'src/credential')
-rw-r--r--src/credential/gnunet-service-credential.c9
1 files changed, 9 insertions, 0 deletions
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)