pkt-line: fix packet_read_line() to handle len < 0 errors