fix error type

use ngx_buf_t instead.