]> git.puffer.fish Git - mirror/frr.git/commit
lib: fix ifindex comparison overflow
authorQuentin Young <qlyoung@cumulusnetworks.com>
Sat, 4 Jan 2020 00:25:38 +0000 (19:25 -0500)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 15 Jan 2020 17:49:29 +0000 (12:49 -0500)
commitfdaa21d5fc4e8526b432f5c4d664f9139a97422b
treecf419900515a55ab18723c29f684ff6b12714ba7
parente4f8d198183e9be811e50a6785654518b6bad876
lib: fix ifindex comparison overflow

Very small (negative!) ifindexes, when subtracted, can overflow.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
lib/if.c