mirror of https://github.com/F-Stack/f-stack.git
Fix tautological comparison
Corresponding upstream changeset: https://github.com/freebsd/freebsd/commit/d45a807e
This commit is contained in:
parent
b844e8f80a
commit
d7c22d3751
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue