aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_quic_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream/ngx_stream_quic_module.c')
-rw-r--r--src/stream/ngx_stream_quic_module.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stream/ngx_stream_quic_module.c b/src/stream/ngx_stream_quic_module.c
index eaaaba89a..e6466bba4 100644
--- a/src/stream/ngx_stream_quic_module.c
+++ b/src/stream/ngx_stream_quic_module.c
@@ -305,10 +305,8 @@ ngx_stream_quic_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
ngx_conf_merge_value(conf->retry, prev->retry, 0);
- if (conf->retry) {
- if (RAND_bytes(conf->token_key, sizeof(conf->token_key)) <= 0) {
- return NGX_CONF_ERROR;
- }
+ if (RAND_bytes(conf->token_key, sizeof(conf->token_key)) <= 0) {
+ return NGX_CONF_ERROR;
}
ngx_conf_merge_str_value(conf->sr_token_key, prev->sr_token_key, "");