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); + } } } }