[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: NAMESTORE: Fix error handling for lookup
From: |
gnunet |
Subject: |
[gnunet] branch master updated: NAMESTORE: Fix error handling for lookups |
Date: |
Sat, 24 Sep 2022 11:05:53 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 7a2a6471d NAMESTORE: Fix error handling for lookups
7a2a6471d is described below
commit 7a2a6471da82b7518f872373e99d2aac00e84a54
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sat Sep 24 18:04:56 2022 +0900
NAMESTORE: Fix error handling for lookups
The error was wrongly interpreted as GNUNET_NO is not an error in this
particular case.
---
src/namestore/gnunet-service-namestore.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/namestore/gnunet-service-namestore.c
b/src/namestore/gnunet-service-namestore.c
index c1d7b8753..9735a2b33 100644
--- a/src/namestore/gnunet-service-namestore.c
+++ b/src/namestore/gnunet-service-namestore.c
@@ -1451,10 +1451,10 @@ handle_record_lookup (void *cls, const struct
LabelLookupMessage *ll_msg)
llr_msg->rd_count = htons (rlc.res_rd_count);
llr_msg->rd_len = htons (rlc.rd_ser_len);
res_name = (char *) &llr_msg[1];
- if (GNUNET_OK != res)
- llr_msg->found = htons (GNUNET_SYSERR);
- else if (GNUNET_YES == rlc.found)
+ if (GNUNET_YES == rlc.found)
llr_msg->found = htons (GNUNET_YES);
+ else if (GNUNET_SYSERR == res)
+ llr_msg->found = htons (GNUNET_SYSERR);
else
llr_msg->found = htons (GNUNET_NO);
GNUNET_memcpy (&llr_msg[1], conv_name, name_len);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: NAMESTORE: Fix error handling for lookups,
gnunet <=