diff options
Diffstat (limited to 'sys-cluster/keepalived/files/keepalived-1.2.2-fix-ipv4-addr-compare.patch')
-rw-r--r-- | sys-cluster/keepalived/files/keepalived-1.2.2-fix-ipv4-addr-compare.patch | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sys-cluster/keepalived/files/keepalived-1.2.2-fix-ipv4-addr-compare.patch b/sys-cluster/keepalived/files/keepalived-1.2.2-fix-ipv4-addr-compare.patch deleted file mode 100644 index 692f042218fc..000000000000 --- a/sys-cluster/keepalived/files/keepalived-1.2.2-fix-ipv4-addr-compare.patch +++ /dev/null @@ -1,23 +0,0 @@ -From bc49a46989c98eb6ee72a379b18b77e87ed624fa Mon Sep 17 00:00:00 2001 -From: Vincent Bernat <bernat@luffy.cx> -Date: Wed, 07 Dec 2011 09:17:55 +0000 -Subject: Fix IPv4 address comparison routine. - -Two different IPv4 addresses were returned to be equal while this was -not the case. Thanks to Ronie Gilberto Henrich for spotting this bug. ---- -diff --git a/keepalived/include/check_data.h b/keepalived/include/check_data.h -index 50a4757..e3ff458 100644 ---- a/keepalived/include/check_data.h -+++ b/keepalived/include/check_data.h -@@ -163,7 +163,7 @@ static inline int sockstorage_equal(const struct sockaddr_storage *s1, - struct sockaddr_in *a1 = (struct sockaddr_in *) s1; - struct sockaddr_in *a2 = (struct sockaddr_in *) s2; - -- if ((a1->sin_addr.s_addr == a1->sin_addr.s_addr) && -+ if ((a1->sin_addr.s_addr == a2->sin_addr.s_addr) && - (a1->sin_port == a2->sin_port)) - return 1; - } --- -cgit v0.8.3.4 |