projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d332c4
)
Check correct bit for DNS truncation
author
Marc van der Wal
<marc+emacs@van-der-wal.fr>
Mon, 17 Jul 2023 08:56:06 +0000
(10:56 +0200)
committer
Robert Pluim
<rpluim@gmail.com>
Mon, 17 Jul 2023 12:15:14 +0000
(14:15 +0200)
* lisp/net/dns.el (dns-read): The TC bit is the second bit, not the
third bit. (Bug#64678)
Copyright-paperwork-exempt: yes
lisp/net/dns.el
patch
|
blob
|
history
diff --git
a/lisp/net/dns.el
b/lisp/net/dns.el
index 1e320a2124a7a093cc654d0dca5f2118db5e1628..42e7fb415d32f4981a26726ea493dfc5bd100010 100644
(file)
--- a/
lisp/net/dns.el
+++ b/
lisp/net/dns.el
@@
-212,7
+212,7
@@
If TCP-P, the first two bytes of the packet will be the length field."
spec))
(push (list 'authoritative-p (if (zerop (logand byte (ash 1 2)))
nil t)) spec)
- (push (list 'truncated-p (if (zerop (logand byte (ash 1
2
))) nil t))
+ (push (list 'truncated-p (if (zerop (logand byte (ash 1
1
))) nil t))
spec)
(push (list 'recursion-desired-p
(if (zerop (logand byte (ash 1 0))) nil t)) spec))