[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipfilter
Subject:    Re: IP Filter 3.3.3 does ot compile
From:       Darren Reed <avalon () coombs ! anu ! edu ! au>
Date:       1999-10-21 23:31:57
[Download RAW message or body]

In some mail from Richard Cotrina, sie said:
> 
> Hello:
> 
> I got an error when compiling IP Filter 3.3.3 under FreeBSD 3.3-RELEASE .
> --------------------------------------------
> ip_state.: In function ´fr_checkstate':
> ip_state : 756 : warning: 'is' might be used uninitialized in this function
> *** Error code 1
> 
> Stop.
> --------------------------------------------
> 
> However, I compiled without any errors Ip Filter 3.3.2
> 
> Any suggestion to solve it ?

*** ip_state.c.dist	Fri Oct 22 09:30:32 1999
--- ip_state.c	Fri Oct 22 09:30:24 1999
***************
*** 763,768 ****
--- 763,769 ----
  	if ((ip->ip_off & IP_OFFMASK) || (fin->fin_fi.fi_fl & FI_SHORT))
  		return NULL;
  
+ 	is = NULL;
  	hlen = fin->fin_hlen;
  	tcp = (tcphdr_t *)((char *)ip + hlen);
  	ic = (struct icmp *)tcp;

I *hate* compilers.

Darren

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic