summaryrefslogtreecommitdiffstats
path: root/lib/command.h
diff options
context:
space:
mode:
authorpaul <paul>2006-03-30 14:39:35 +0000
committerpaul <paul>2006-03-30 14:39:35 +0000
commitc2a58ed5e0c1733bcd39da0834b8f19a60aab96c (patch)
treea944a4c4a07275a72c59886e2d04724ecce229b8 /lib/command.h
parentab063f776f6e9dba6e065cfbfe333795208b4524 (diff)
downloadquagga-c2a58ed5e0c1733bcd39da0834b8f19a60aab96c.tar.bz2
quagga-c2a58ed5e0c1733bcd39da0834b8f19a60aab96c.tar.xz
[bgpd] Fix infinite loop in community_str2com
2006-03-30 Paul Jakma <paul.jakma@sun.com> * bgp_community.c: (community_gettoken) Unknown token should return NULL, to give a strong indication to callers that the token no longer can be parsed, otherwise callers looping on this function may have a hard time ending their loop. (community_str2com) While loop around community_gettoken appears to have been coded thinking that break statement would break from the while{}, hence it could never exit for unknown token case. Fix it to do..while, so it can use the NULL result from community_gettoken easily.
Diffstat (limited to 'lib/command.h')
0 files changed, 0 insertions, 0 deletions