Skip to content

Commit

Permalink
Fix noise length compute
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackarain committed Nov 23, 2023
1 parent 049d92b commit 630ea10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions proxy/include/proxy/proxy_server.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,8 @@ R"x*x*x(<html>
}

noise_length = fvalue & cvalue;
if (noise_length >= nosie_injection_max_len)
if (noise_length >= nosie_injection_max_len ||
noise_length < 4)
continue;

XLOG_DBG << "connection id: "
Expand Down Expand Up @@ -3613,7 +3614,8 @@ R"x*x*x(<html>
}

noise_length = fvalue & cvalue;
if (noise_length >= nosie_injection_max_len)
if (noise_length >= nosie_injection_max_len ||
noise_length < 4)
continue;

XLOG_DBG << "connection id: "
Expand Down

0 comments on commit 630ea10

Please sign in to comment.