diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-09-05 13:17:47 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-09-05 13:17:47 -0400 |
| commit | 3679c9fa30bfa6a2b3caa6b2afcd3571dc246f47 (patch) | |
| tree | bdabede30f3fe31981673beb8a11a17e1283dad6 /lib/if_rmap.c | |
| parent | 41bcc4a91e5f68f3cf9c01b63f9d9281ebdfa654 (diff) | |
ripd: Fix warning about metric value less than 0
RIP is testing to ensure that the metric returned
isn't negative. We should be looking at the returned
value from the cli strtol.
If we get a metric value that is less than zero that
means that we shouldn't use this value in RIP currently.
So signify that by returning mod here.
Fixes: #1107
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/if_rmap.c')
0 files changed, 0 insertions, 0 deletions
