projects
/
dnsmasq.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5659b4
)
Make extract_name() easier to call operating on first name in message.
author
Simon Kelley
<simon@thekelleys.org.uk>
Fri, 7 Feb 2025 22:13:31 +0000
(22:13 +0000)
committer
Simon Kelley
<simon@thekelleys.org.uk>
Fri, 14 Mar 2025 15:12:46 +0000
(15:12 +0000)
src/forward.c
patch
|
blob
|
history
diff --git
a/src/forward.c
b/src/forward.c
index
ed27479
..
54ed326
100644
(file)
--- a/
src/forward.c
+++ b/
src/forward.c
@@
-388,9
+388,9
@@
static void forward_query(int udpfd, union mysockaddr *udpaddr,
forward->frec_src.orig_id = ntohs(header->id);
forward->new_id = get_id();
header->id = ntohs(forward->new_id);
-
forward->frec_src.encode_bitmap = (!option_bool(OPT_NO_0x20) && option_bool(OPT_DO_0x20)) ? rand32() : 0;
forward->frec_src.encode_bigmap = NULL;
+
if (!extract_name(header, plen, NULL, (char *)&forward->frec_src.encode_bitmap, EXTR_NAME_FLIP, 1))
goto reply;