[Xorp-cvs] XORP cvs commit: xorp/policy/backend

Pavlin Radoslavov pavlin@icir.org
Thu, 13 Oct 2005 10:49:34 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2005-10-13 10:49:34 UTC

XORP CVS repository


Modified files:
	policy/backend backend.y yacc.yy_policy_backend_parser.cc 

Log message:
	Fix the error check after strtoul().
	We must check for an error before we have deallocated the memory
	for the original string, othersise the result is unpredicted.
	
	This fixes a run-time error on Linux.

Revision  Changes                                Path
1.8       +10 -4;  commitid: 2655434e3b4d7ea6;   xorp/policy/backend/backend.y
1.8       +35 -32;  commitid: 2655434e3b4d7ea6;  xorp/policy/backend/yacc.yy_policy_backend_parser.cc