mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 08:43:40 -07:00
Check correct bit for DNS truncation
* lisp/net/dns.el (dns-read): The TC bit is the second bit, not the third bit. (Bug#64678) Copyright-paperwork-exempt: yes
This commit is contained in:
parent
9d332c4993
commit
fcf9e91f44
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue