[vpnc-devel] dereference NULL

Plamen Todorov plam_tod at yahoo.com
Sat Jul 29 05:27:20 CEST 2006


Hello,

In vpnc.c file, function do_phase2_notice_check() the pointer *r_p is not checked for NULL. I had a situation when unpack_verify_phase2() returned ISAKMP_N_UNEQUAL_PAYLOAD_LENGTHS and left *r_p to be NULL which later lead to crash.

Probably do_phase2_notice_check() should return -1 in this situation to handle the error gracefully.

Plamen

 		
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.unix-ag.uni-kl.de/pipermail/vpnc-devel/attachments/20060728/12b945c3/attachment.htm 


More information about the vpnc-devel mailing list