Projects STRLCPY dnstt Commits a6602a87
🤬
  • Log "too few or too many" questions.

    This log line would formerly be emitted for a query with 0 questions:
    	FORMERR: too many questions (0)
    
    The Nmap DNSStatusRequest probe is a query with 0 questions.
  • Loading...
  • David Fifield committed 3 years ago
    a6602a87
    1 parent 75a0aa61
  • ■ ■ ■ ■
    dnstt-server/main.go
    skipped 405 lines
    406 406   // There must be exactly one question.
    407 407   if len(query.Question) != 1 {
    408 408   resp.Flags |= dns.RcodeFormatError
    409  - log.Printf("FORMERR: too many questions (%d)", len(query.Question))
     409 + log.Printf("FORMERR: too few or too many questions (%d)", len(query.Question))
    410 410   return resp, nil
    411 411   }
    412 412   question := query.Question[0]
    skipped 490 lines
Please wait...
Page is in error, reload to recover