Menu

#31 route_util.c problem

open
nobody
Code (23)
5
2003-06-26
2003-06-26
Anonymous
No

In function string2bgptype, we use strncasecmp to
compare two strings base on length extracted from
s_bgp_attr_type. The bug will produce when we have
str = "ORIGINATOR_ID". In this case, the function
string2bgptype will always return 1 (i.e. it matches bgp
type ORIGIN insteed of ORIGINATOR_ID as expected).

Discussion


Log in to post a comment.

MongoDB Logo MongoDB