Skip to content

Commit

Permalink
Allow oversized incoming DTLS packets
Browse files Browse the repository at this point in the history
Bring DTLS into line with everything else, as with commit 0281a8e.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
dwmw2 committed Jun 27, 2019
1 parent 3fb7645 commit 717b813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dtls.c
Expand Up @@ -272,7 +272,7 @@ int dtls_mainloop(struct openconnect_info *vpninfo, int *timeout, int readable)
}

while (readable) {
int len = vpninfo->ip_info.mtu;
int len = MAX(16384, vpninfo->ip_info.mtu);
unsigned char *buf;

if (!vpninfo->dtls_pkt) {
Expand Down

0 comments on commit 717b813

Please sign in to comment.