From d599e545f7eb33cf2631b57a36d5a9ed3efb8950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Tue, 25 Oct 2016 09:15:34 +0000 Subject: [PATCH] Update mud --- mud | 2 +- src/main.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/mud b/mud index b82534d..df0d941 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit b82534d54c5e25fdf9a3717eb8091aabb6766c78 +Subproject commit df0d941241f9a72538807fefc45ce3d202271001 diff --git a/src/main.c b/src/main.c index 313a852..b304cd8 100644 --- a/src/main.c +++ b/src/main.c @@ -437,8 +437,10 @@ int main (int argc, char **argv) unsigned char *data = &buf[ic.hdr_size]; if (data[0]==3) { int new_mtu = (data[6]<<8)|data[7]; - gt_log("received MTU from ICMP: %i\n", new_mtu); - mud_set_mtu(mud, new_mtu-50); + if (new_mtu) { + gt_log("received MTU from ICMP: %i\n", new_mtu); + mud_set_mtu(mud, new_mtu-50); + } } } }