cvs commit: src/usr.sbin/rtadvd config.c

Nate Lawson nate at root.org
Wed Apr 2 10:18:36 PST 2003


On Wed, 2 Apr 2003, SUZUKI Shinsuke wrote:
>   Modified files:
>     usr.sbin/rtadvd      config.c 
>   Log:
>   fixed invalid pointer reference
>   
>   Obtained from: KAME
>   
>   Revision  Changes    Path
>   1.13      +1 -0      src/usr.sbin/rtadvd/config.c
> 
> 
> Index: src/usr.sbin/rtadvd/config.c
> diff -u src/usr.sbin/rtadvd/config.c:1.12 src/usr.sbin/rtadvd/config.c:1.13
> --- src/usr.sbin/rtadvd/config.c:1.12	Mon Dec 30 13:18:15 2002
> +++ src/usr.sbin/rtadvd/config.c	Wed Apr  2 03:35:51 2003
> @@ -1,4 +1,4 @@
> -/*	$FreeBSD: /repoman/r/ncvs/src/usr.sbin/rtadvd/config.c,v 1.12 2002/12/30 21:18:15 schweikh Exp $	*/
> +/*	$FreeBSD: /repoman/r/ncvs/src/usr.sbin/rtadvd/config.c,v 1.13 2003/04/02 11:35:51 suz Exp $	*/
>  /*	$KAME: config.c,v 1.37 2001/05/25 07:34:00 itojun Exp $	*/
>  
>  /*
> @@ -630,6 +630,7 @@
>  
>  		/* link into chain */
>  		insque(pp, &rai->prefix);
> +		pp->rainfo == rai;
>  
>  		/* counter increment */
>  		rai->pfxs++;

I think you want assignment, not equivalence test, especially since you
deref the pointer immediately afterwards.

-Nate



More information about the cvs-src mailing list