Skip to content

Commit

Permalink
Merge pull request iqiyi#400 from ywc689/fix_snat_sapool_leak
Browse files Browse the repository at this point in the history
sa_pool: fix snat sapool leak problem
  • Loading branch information
mscbg authored Mar 1, 2019
2 parents 3f8ca79 + 8456e18 commit 35e4d08
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 @@ -500,7 +500,7 @@ static int conn_expire(void *priv)
memset(&saddr, 0, sizeof(saddr));
memset(&daddr, 0, sizeof(daddr));
if (AF_INET == conn->af) {
struct sockaddr_in *daddr4 = (struct sockaddr_in *)&saddr;
struct sockaddr_in *daddr4 = (struct sockaddr_in *)&daddr;
struct sockaddr_in *saddr4 = (struct sockaddr_in *)&saddr;

daddr4->sin_family = AF_INET;
Expand Down

0 comments on commit 35e4d08

Please sign in to comment.