aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic.c4
-rw-r--r--src/event/quic/ngx_event_quic_transport.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c
index 20ff3305c..17143f3f7 100644
--- a/src/event/quic/ngx_event_quic.c
+++ b/src/event/quic/ngx_event_quic.c
@@ -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;
diff --git a/src/event/quic/ngx_event_quic_transport.c b/src/event/quic/ngx_event_quic_transport.c
index 5cf6bc207..edd7c6b9f 100644
--- a/src/event/quic/ngx_event_quic_transport.c
+++ b/src/event/quic/ngx_event_quic_transport.c
@@ -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;