From d7c22d375179a6a684487da08467aa1286f3061c Mon Sep 17 00:00:00 2001 From: Shivansh Rai Date: Tue, 2 Jan 2018 23:05:34 +0530 Subject: [PATCH] Fix tautological comparison Corresponding upstream changeset: https://github.com/freebsd/freebsd/commit/d45a807e --- freebsd/netinet/libalias/alias_sctp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freebsd/netinet/libalias/alias_sctp.c b/freebsd/netinet/libalias/alias_sctp.c index 08d8b4d78..5e08b7ef5 100644 --- a/freebsd/netinet/libalias/alias_sctp.c +++ b/freebsd/netinet/libalias/alias_sctp.c @@ -2127,8 +2127,8 @@ FindSctpLocalT(struct libalias *la, struct in_addr g_addr, uint32_t l_vtag, uin if ((assoc->g_vtag == l_vtag) && (assoc->g_port == g_port) && (assoc->l_port == l_port)) { if (assoc->num_Gaddr) { LIST_FOREACH(G_Addr, &(assoc->Gaddr), list_Gaddr) { - if(G_Addr->g_addr.s_addr == G_Addr->g_addr.s_addr) - return(assoc); /* full match */ + if (G_Addr->g_addr.s_addr == g_addr.s_addr) + return (assoc); /* full match */ } } else { if (++cnt > 1) return(NULL);