Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 2/2] ppp: do not allow mtu > 1500 to be set
@ 2010-04-22 21:22 Kristen Carlson Accardi
  0 siblings, 0 replies; only message in thread
From: Kristen Carlson Accardi @ 2010-04-22 21:22 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 443 bytes --]

---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-22 21:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-22 21:22 [PATCH 2/2] ppp: do not allow mtu > 1500 to be set Kristen Carlson Accardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox