]> git.proxmox.com Git - mirror_frr.git/commit
lib: address type-punned pointers in prefix_same()
authorDenis Ovsienko <infrastation@yandex.ru>
Sun, 18 Dec 2011 11:40:17 +0000 (15:40 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 2 Jan 2012 14:37:54 +0000 (18:37 +0400)
commitfe40bfa2e1b913e24d6b8374fd83a19d00ad7c1c
treea804e85ac21df3fa613be8fed54f2c6cff830459
parent733cd9e5792648de50da3c00805aacb51cb27048
lib: address type-punned pointers in prefix_same()

IPV4_ADDR_SAME() wasn't passed the right union member, this could cause
a bug due to strict-aliasing. IPV6_ADDR_SAME() case got its fix before
the error could be created by macro upgrade.
lib/prefix.c