fixing memory allocation for boolean pointer

dev
mzack 2021-12-02 11:19:37 +01:00
parent a908a1515a
commit c807438ecd
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ func (request *Request) Compile(options *protocols.ExecuterOptions) error {
request.Retries = 3
}
if request.Recursion == nil {
*request.Recursion = true
recursion := true
request.Recursion = &recursion
}
dnsClientOptions := &dnsclientpool.Configuration{
Retries: request.Retries,