Re: Traceroute

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Mon, 3 Mar 1997 23:11:54 +0300


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)