commit | fbc043a847149499436fe4083b6384bde43fe578 | [log] [tgz] |
---|---|---|
author | Andrew Certain <certain@amazon.com> | Tue Dec 04 12:54:18 2012 -0800 |
committer | Scott Feldman <sfeldma@cumulusnetworks.com> | Mon Jan 07 09:59:49 2013 -0800 |
tree | 17b90e2e2b22e91eb670ce0b0102047ac0862e16 | |
parent | 1a61ad1011c498c4ae66cc145db673e53ef02962 [diff] |
ospfd: Fixed signed/unsigned masking of negative metrics In the original code, negative metrics would be converted successfully by atoi() and then converted to an unsigned int that would always compare successfully against >= 0, leaving a large positive metric in the route map. Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>