• Michał Kępień's avatar
    dnstap-read: clear buffer before expanding it · 3549abe8
    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.
    3549abe8
copyrights 182 KB