to make this absolutely clear you can ask for: `if (current_buf && current_buf->packet) {` and mind the coding convention.