QUIC: dead code removed.
The ngx_quic_parse_packet() now returns NGX_OK, NGX_ERROR (parsing failed) and NGX_ABORT (unsupported version).
This commit is contained in:
parent
2e249af96e
commit
4f37d2d295
2 changed files with 5 additions and 5 deletions
|
@ -764,8 +764,8 @@ ngx_quic_handle_packet(ngx_connection_t *c, ngx_quic_conf_t *conf,
|
|||
|
||||
rc = ngx_quic_parse_packet(pkt);
|
||||
|
||||
if (rc == NGX_DECLINED || rc == NGX_ERROR) {
|
||||
return rc;
|
||||
if (rc == NGX_ERROR) {
|
||||
return NGX_DECLINED;
|
||||
}
|
||||
|
||||
pkt->parsed = 1;
|
||||
|
|
|
@ -285,14 +285,14 @@ ngx_quic_parse_packet(ngx_quic_header_t *pkt)
|
|||
|
||||
if (ngx_quic_parse_short_header(pkt, NGX_QUIC_SERVER_CID_LEN) != NGX_OK)
|
||||
{
|
||||
return NGX_DECLINED;
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
if (ngx_quic_parse_long_header(pkt) != NGX_OK) {
|
||||
return NGX_DECLINED;
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
if (!ngx_quic_supported_version(pkt->version)) {
|
||||
|
@ -300,7 +300,7 @@ ngx_quic_parse_packet(ngx_quic_header_t *pkt)
|
|||
}
|
||||
|
||||
if (ngx_quic_parse_long_header_v1(pkt) != NGX_OK) {
|
||||
return NGX_DECLINED;
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
||||
return NGX_OK;
|
||||
|
|
Loading…
Reference in a new issue