Skip to content

Commit

Permalink
Merge pull request iqiyi#866 from zhouyangchao/bugfix/fix_snat_flush
Browse files Browse the repository at this point in the history
conn: fix sa_entry leak when flushing snat connections
  • Loading branch information
ywc689 authored Feb 1, 2023
2 parents 3f5926a + d6551a6 commit 3de0f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipvs/ip_vs_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ static void conn_flush(void)

saddr6->sin6_family = AF_INET6;
saddr6->sin6_addr = conn->vaddr.in6;
saddr6->sin6_port = conn->cport;
saddr6->sin6_port = conn->vport;
} else {
RTE_LOG(WARNING, IPVS, "%s: conn address family %d "
"not supported!\n", __func__, conn->af);
Expand Down

0 comments on commit 3de0f77

Please sign in to comment.