Skip to content

Commit

Permalink
Fix error :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
lubomudr committed Jun 29, 2024
1 parent c40b6e4 commit 878d4bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naxsi_src/naxsi_skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -2130,7 +2130,7 @@ naxsi_request_id(ngx_http_request_t* req)
/* NGINX request_id variable does not defined */
u_char bytes[NAXSI_REQUEST_ID_SIZE];
#if (NGX_OPENSSL)
if (RAND_bytes(bytes, NAXSI_REQUEST_ID_SIZE) != 1) {
if (RAND_bytes(bytes, NAXSI_REQUEST_ID_SIZE) == 1) {
ngx_hex_dump(ctx->request_id, bytes, NAXSI_REQUEST_ID_SIZE);
return ctx->request_id;
}
Expand Down

0 comments on commit 878d4bb

Please sign in to comment.