Commit 0ab5401
committed
Fix cast-away-const in ws_ctx_ssl_set_tmp_dh: allocate DerBuffer with actual size and copy data instead of pointing at caller's const buffer, which caused FreeDer to free non-owned memory.
1 parent 4594f3f commit 0ab5401
2 files changed
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5930 | 5930 | | |
5931 | 5931 | | |
5932 | 5932 | | |
5933 | | - | |
5934 | | - | |
| 5933 | + | |
| 5934 | + | |
5935 | 5935 | | |
5936 | | - | |
5937 | | - | |
5938 | | - | |
| 5936 | + | |
5939 | 5937 | | |
5940 | 5938 | | |
5941 | 5939 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1718 | 1718 | | |
1719 | 1719 | | |
1720 | 1720 | | |
1721 | | - | |
| 1721 | + | |
1722 | 1722 | | |
1723 | 1723 | | |
1724 | 1724 | | |
| |||
1748 | 1748 | | |
1749 | 1749 | | |
1750 | 1750 | | |
1751 | | - | |
| 1751 | + | |
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
| |||
0 commit comments