Skip to content

Commit

Permalink
Remove the fragmentation check for the first AEAD chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
madeye committed Aug 19, 2021
1 parent abcf85e commit b911755
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ enum datatypes {
#define SSMAXCONN 1024
#endif

#ifndef MAX_FRAG
#define MAX_FRAG 1
#endif

#ifdef USE_NFCONNTRACK_TOS

#ifndef MARK_MAX_PACKET
Expand Down Expand Up @@ -982,11 +978,6 @@ server_recv_cb(EV_P_ ev_io *w, int revents)
return;
} else if (err == CRYPTO_NEED_MORE) {
if (server->stage != STAGE_STREAM) {
if (server->frag > MAX_FRAG) {
report_addr(server->fd, "malicious fragmentation");
stop_server(EV_A_ server);
return;
}
server->frag++;
}
return;
Expand Down

0 comments on commit b911755

Please sign in to comment.