mirror of https://github.com/F-Stack/f-stack.git
Merge pull request #134 from shivansh/fix/tautological_compare
Fix tautological comparison
This commit is contained in:
commit
909e1fd62d
|
@ -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