diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-16 00:42:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-16 00:42:45 +0000 |
commit | dcf53c92ea15715a4406b9230a1c68943501ffb2 (patch) | |
tree | 1d6ac3cb6ae47126af1dc54f4f0f5bac7afc49b7 /sys/net/if_ppp.c | |
parent | 3b1414ef904bbd7e35b23fc1509a3ea20e822cae (diff) |
Add some missing lengths checks when passing data from userland to
kernel. From based on NetBSD patches.
Diffstat (limited to 'sys/net/if_ppp.c')
-rw-r--r-- | sys/net/if_ppp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/if_ppp.c b/sys/net/if_ppp.c index 09be2e547dc..3573f827295 100644 --- a/sys/net/if_ppp.c +++ b/sys/net/if_ppp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ppp.c,v 1.24 2001/07/20 22:47:15 mickey Exp $ */ +/* $OpenBSD: if_ppp.c,v 1.25 2001/09/16 00:42:44 millert Exp $ */ /* $NetBSD: if_ppp.c,v 1.39 1997/05/17 21:11:59 christos Exp $ */ /* @@ -329,7 +329,8 @@ pppioctl(sc, cmd, data, flag, p) int flag; struct proc *p; { - int s, error, flags, mru, nb, npx; + int s, error, flags, mru, npx; + u_int nb; struct ppp_option_data *odp; struct compressor **cp; struct npioctl *npi; |