---
gatchat/ppp_net.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gatchat/ppp_net.c b/gatchat/ppp_net.c
index fc1f9fb..53d62fa 100644
--- a/gatchat/ppp_net.c
+++ b/gatchat/ppp_net.c
@@ -53,7 +53,7 @@ void ppp_net_set_mtu(struct ppp_net *net, guint16 mtu)
struct ifreq ifr;
int sock;
- if (net == NULL)
+ if (net == NULL || mtu >= MAX_PACKET)
return;
net->mtu = mtu;
--
1.6.6.1
Show replies by date