Commit d3295fe
mptcp: use proper req destructor for IPv6
Before, only the destructor from TCP request sock in IPv4 was called
even if the subflow was IPv6.
It is important to use the right destructor to avoid memory leaks with
some advanced IPv6 features, e.g. when the request socks contain
specific IPv6 options.
Fixes: 79c0949 ("mptcp: Add key generation and token tree")
Reviewed-by: Mat Martineau <[email protected]>
Cc: [email protected]
Signed-off-by: Matthieu Baerts <[email protected]>
Signed-off-by: Mat Martineau <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>1 parent 34b21d1 commit d3295fe
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
550 | 549 | | |
551 | 550 | | |
552 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
553 | 558 | | |
554 | 559 | | |
555 | 560 | | |
| |||
581 | 586 | | |
582 | 587 | | |
583 | 588 | | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
584 | 595 | | |
585 | 596 | | |
586 | 597 | | |
| |||
1929 | 1940 | | |
1930 | 1941 | | |
1931 | 1942 | | |
1932 | | - | |
1933 | | - | |
1934 | 1943 | | |
1935 | 1944 | | |
1936 | 1945 | | |
1937 | 1946 | | |
1938 | 1947 | | |
1939 | 1948 | | |
1940 | 1949 | | |
| 1950 | + | |
| 1951 | + | |
1941 | 1952 | | |
1942 | 1953 | | |
1943 | 1954 | | |
| |||
1963 | 1974 | | |
1964 | 1975 | | |
1965 | 1976 | | |
| 1977 | + | |
| 1978 | + | |
1966 | 1979 | | |
1967 | 1980 | | |
1968 | 1981 | | |
| |||
0 commit comments