]> 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 13:27:44 +0000 (17:27 +0400)
commit7eed92b9653b09f064e827e887c29ee11122b4fe
tree967341976629f684906b35f79ae96d7855ef4b0a
parent45b341f72df6d7dd89133dfd21f43cf1cca74ce5
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