pkt-line: prepare buffer before handling ERR packets