aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-12-22 12:04:15 +0300
committerSergey Kandaurov <pluknet@nginx.com>2020-12-22 12:04:15 +0300
commitdf8ef280a508ba4589f1171e3f3381fa7fc6c04c (patch)
treeae2daea474b384336ae066001f7c0bf9e72f40d2 /src
parenta96989365676de270fbb2ad19480435ad5e86df4 (diff)
downloadnginx-df8ef280a508ba4589f1171e3f3381fa7fc6c04c.tar.gz
nginx-df8ef280a508ba4589f1171e3f3381fa7fc6c04c.zip
QUIC: fixed logging PATH_CHALLENGE/RESPONSE and build with GCC < 5.
Diffstat (limited to 'src')
-rw-r--r--src/event/ngx_event_quic.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/event/ngx_event_quic.c b/src/event/ngx_event_quic.c
index 73519b968..73cde84d5 100644
--- a/src/event/ngx_event_quic.c
+++ b/src/event/ngx_event_quic.c
@@ -589,13 +589,15 @@ ngx_quic_log_frame(ngx_log_t *log, ngx_quic_frame_t *f, ngx_uint_t tx)
break;
case NGX_QUIC_FT_PATH_CHALLENGE:
- p = ngx_slprintf(p, last, "PATH_CHALLENGE data:0x%xL",
- *(uint64_t *) &f->u.path_challenge.data);
+ p = ngx_slprintf(p, last, "PATH_CHALLENGE data:0x%*xs",
+ sizeof(f->u.path_challenge.data),
+ f->u.path_challenge.data);
break;
case NGX_QUIC_FT_PATH_RESPONSE:
- p = ngx_slprintf(p, last, "PATH_RESPONSE data:0x%xL",
- f->u.path_response);
+ p = ngx_slprintf(p, last, "PATH_RESPONSE data:0x%*xs",
+ sizeof(f->u.path_challenge.data),
+ f->u.path_challenge.data);
break;
case NGX_QUIC_FT_NEW_TOKEN: