diff options
author | Paul Jakma <paul.jakma@sun.com> | 2006-03-30 14:39:35 +0000 |
---|---|---|
committer | Paul Jakma <paul.jakma@sun.com> | 2006-03-30 14:39:35 +0000 |
commit | 15aa6a1a732eef1049dbc64d7ede9236772cafcf (patch) | |
tree | 0badfe99eedf29a4e8ef519123e91e96309ad300 /solaris/pkginfo.libs.tmpl.in | |
parent | cdc2c3f98e5652c06ad01eed6bfb5f93c168f817 (diff) |
[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 'solaris/pkginfo.libs.tmpl.in')
0 files changed, 0 insertions, 0 deletions