lkml.org 
[lkml]   [1997]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Traceroute

Hello!

This medicine will help you 8)

Alexey Kuznetsov.



--- linux/net/ipv4/ip_sockglue.c.orig Mon Mar 3 22:19:13 1997
+++ linux/net/ipv4/ip_sockglue.c Mon Mar 3 22:21:47 1997
@@ -171,16 +171,13 @@
{
int val=0,err;
unsigned char ucval = 0;
- int len;
#if defined(CONFIG_IP_FIREWALL) || defined(CONFIG_IP_ACCT)
struct ip_fw tmp_fw;
#endif

- if(get_user(len, optval))
+ if(optlen>=sizeof(int) && get_user(val, (int *) optval))
return -EFAULT;
- if(len>=sizeof(int) && get_user(val, (int *) optval))
- return -EFAULT;
- if(len>=sizeof(char) && get_user(ucval, (unsigned char *) optval))
+ if(optlen>=sizeof(char) && get_user(ucval, (unsigned char *) optval))
return -EFAULT;

if(level!=SOL_IP)

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.042 / U:1.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site