Skip to content
  • Michał Kępień's avatar
    dnstap-read: clear buffer before expanding it · 1a1e550f
    Michał Kępień authored
    When printing a packet, dnstap-read checks whether its text form takes
    up more than the 2048 bytes allocated for the output buffer by default.
    If that is the case, the output buffer is automatically expanded, but
    the truncated output is left in the buffer, resulting in malformed data
    being printed.  Clear the output buffer before expanding it to prevent
    this issue from occurring.
    
    (cherry picked from commit 3549abe8)
    1a1e550f