Add missing return check for PACKET_buf_init