[Openswan dev] openswan-2.6.13: use of unset pointer variables

Paul Wouters paul at xelerance.com
Sun May 18 19:21:59 EDT 2008


On Sun, 18 May 2008, D. Hugh Redelmeier wrote:

> In programs/pluto/spdb_print.c function print_sa_attr_oakley the variable
> "en" may not be initialized when it is used.

I've fixed these. Thanks.

> print_sa_v2_attr looks like it should be fixed up so that it can have
> the bug :-).  But I haven't looked at it carefully.

I have not changed this one yet.

> I've not compiled the code but I would have thought that gcc, with
> appropriate flags, would have warned about these bugs.  Am I wrong?

It did not generate warnings with my gcc.

> Are other gcc-diagnosable problems being ignored?  Are more -W flags
> needed?

Nothing is being ignored on purpose.

Paul
-- 
Building and integrating Virtual Private Networks with Openswan:
http://www.amazon.com/gp/product/1904811256/104-3099591-2946327?n=283155


More information about the Dev mailing list