aboutsummaryrefslogtreecommitdiff
path: root/src/credential
diff options
context:
space:
mode:
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,
805 805
806 vrh->lookup_request = NULL; 806 vrh->lookup_request = NULL;
807 cred_record_count = 0; 807 cred_record_count = 0;
808
809 if (0 == rd_count)
810 {
811 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
812 "No credentials found\n");
813 send_lookup_response (vrh);
814 return;
815 }
816
808 for (i=0; i < rd_count; i++) 817 for (i=0; i < rd_count; i++)
809 { 818 {
810 if (GNUNET_GNSRECORD_TYPE_CREDENTIAL != rd[i].record_type) 819 if (GNUNET_GNSRECORD_TYPE_CREDENTIAL != rd[i].record_type)