Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
KIT-CA
acme4netvs
Commits
9140e2d7
Verified
Commit
9140e2d7
authored
Oct 22, 2022
by
heiko.reese
💤
Browse files
Fix: invalid memory address or nil pointer dereference on empty/broken/lost DNS answer over UDP.
parent
3eef9bba
Pipeline
#242988
passed with stages
in 2 minutes and 28 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
VERSION
View file @
9140e2d7
0.5.
8
0.5.
9
dns_utils.go
View file @
9140e2d7
...
...
@@ -57,8 +57,8 @@ func NameserverHasChallenge(nameserver, fqdn, challenge string) bool {
// request all TXT records
TXTAnswer
,
_
,
err
:=
client
.
Exchange
(
&
msg
,
nameserver
)
// if message is too big, retry
using
TCP
if
TXTAnswer
.
MsgHdr
.
Truncated
{
// if message is
empty/broken/lost or
too big, retry
over
TCP
if
TXTAnswer
==
nil
||
TXTAnswer
.
MsgHdr
.
Truncated
{
// Set DNS query protocol to TCP to allow for large anwsers
client
.
Net
=
"tcp"
// ask DNS about challenge record
...
...
heiko.reese
💤
@heiko.reese
mentioned in issue
#35 (closed)
·
Oct 22, 2022
mentioned in issue
#35 (closed)
mentioned in issue #35
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment