[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: check namestore only sends
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: check namestore only sends relevant replies to monitor |
Date: |
Tue, 09 Oct 2018 15:03:24 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new b7ef945fa check namestore only sends relevant replies to monitor
b7ef945fa is described below
commit b7ef945fa5c5926e6eb457a472115263c0170f8f
Author: Christian Grothoff <address@hidden>
AuthorDate: Tue Oct 9 14:56:22 2018 +0200
check namestore only sends relevant replies to monitor
---
src/namestore/namestore_api_monitor.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/namestore/namestore_api_monitor.c
b/src/namestore/namestore_api_monitor.c
index 6c441d786..2c4c4559d 100644
--- a/src/namestore/namestore_api_monitor.c
+++ b/src/namestore/namestore_api_monitor.c
@@ -129,6 +129,7 @@ static int
check_result (void *cls,
const struct RecordResultMessage *lrm)
{
+ struct GNUNET_NAMESTORE_ZoneMonitor *zm = cls;
size_t lrm_len;
size_t exp_lrm_len;
size_t name_len;
@@ -138,6 +139,13 @@ check_result (void *cls,
const char *rd_ser_tmp;
(void) cls;
+ if (0 != memcmp (&lrm->private_key,
+ &zm->zone,
+ sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey)))
+ {
+ GNUNET_break (0);
+ return GNUNET_SYSERR;
+ }
lrm_len = ntohs (lrm->gns_header.header.size);
rd_len = ntohs (lrm->rd_len);
rd_count = ntohs (lrm->rd_count);
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: check namestore only sends relevant replies to monitor,
gnunet <=