[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: GNS: Fix BOX handling in apex
From: |
gnunet |
Subject: |
[gnunet] branch master updated: GNS: Fix BOX handling in apex |
Date: |
Fri, 18 Mar 2022 08:52:06 +0100 |
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 fcbabc6b6 GNS: Fix BOX handling in apex
fcbabc6b6 is described below
commit fcbabc6b637ba341c7a86e240302010a4429d41c
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Fri Mar 18 08:52:01 2022 +0100
GNS: Fix BOX handling in apex
---
src/gns/gnunet-service-gns_resolver.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/gns/gnunet-service-gns_resolver.c
b/src/gns/gnunet-service-gns_resolver.c
index bb3dc215a..9d26e1777 100644
--- a/src/gns/gnunet-service-gns_resolver.c
+++ b/src/gns/gnunet-service-gns_resolver.c
@@ -623,6 +623,19 @@ resolver_lookup_get_next_label (struct GNS_ResolverHandle
*rh)
rp = rh->name;
rh->name_resolution_pos = 0;
}
+ else if (('_' == dot[1]) &&
+ ('_' == rh->name[0]) &&
+ (dot == memchr (rh->name, (int) '.', rh->name_resolution_pos)))
+ {
+ /**
+ * Do not advance a label. This seems to be a name only consisting
+ * of a BOX indicator (_443,_tcp).
+ * Which means, it is a BOX under the empty label.
+ * leaving name_resolution_pos as is and returning empty label.
+ */
+ rp = GNUNET_GNS_EMPTY_LABEL_AT;
+ len = strlen (GNUNET_GNS_EMPTY_LABEL_AT);
+ }
else
{
/* advance by one label */
--
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: GNS: Fix BOX handling in apex,
gnunet <=