comparison src/event/ngx_event_quic.c @ 8190:2bc1f97c1c2d quic

Fixed packet "input" debug log message.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 05 Mar 2020 13:10:01 +0300
parents 80a07843c711
children 7bd7c4e24951
comparison
equal deleted inserted replaced
8189:80a07843c711 8190:2bc1f97c1c2d
1201 1201
1202 n = bb->last - bb->pos; 1202 n = bb->last - bb->pos;
1203 p = bb->pos; 1203 p = bb->pos;
1204 b = bb->start; 1204 b = bb->start;
1205 1205
1206 ngx_quic_hexdump0(c->log, "input", buf, n); 1206 ngx_quic_hexdump0(c->log, "input", p, n);
1207 1207
1208 if ((p[0] & 0xf0) != NGX_QUIC_PKT_HANDSHAKE) { 1208 if ((p[0] & 0xf0) != NGX_QUIC_PKT_HANDSHAKE) {
1209 ngx_log_error(NGX_LOG_INFO, c->log, 0, "invalid packet type"); 1209 ngx_log_error(NGX_LOG_INFO, c->log, 0, "invalid packet type");
1210 return NGX_ERROR; 1210 return NGX_ERROR;
1211 } 1211 }