]> git.proxmox.com Git - mirror_frr.git/commit
ospfd: Fixed signed/unsigned masking of negative metrics
authorAndrew Certain <certain@amazon.com>
Tue, 4 Dec 2012 20:54:18 +0000 (12:54 -0800)
committerScott Feldman <sfeldma@cumulusnetworks.com>
Mon, 7 Jan 2013 17:59:49 +0000 (09:59 -0800)
commitfbc043a847149499436fe4083b6384bde43fe578
tree17b90e2e2b22e91eb670ce0b0102047ac0862e16
parent1a61ad1011c498c4ae66cc145db673e53ef02962
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>
ospfd/ospf_routemap.c