diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-09-10 05:20:53 +0200 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-09-10 05:56:18 +0200 |
commit | 2e03c617ba769bcbf0b8d1005b9df87f4e7a8c9c (patch) | |
tree | b538fdb6d67e8dddcc9a7820b26a01409242faef /Makefile | |
parent | Fix build issue that occurs on gcc debian 6.3.0-18 (diff) | |
download | wg-dynamic-2e03c617ba769bcbf0b8d1005b9df87f4e7a8c9c.tar.xz wg-dynamic-2e03c617ba769bcbf0b8d1005b9df87f4e7a8c9c.zip |
Fix incorrect use of pubkey ptr in new_lease()
Before this, leases_ht would store the (temporary) pointer to pubkey
that's given to new_lease() directly. The memory it's pointing to is
overwritten as soon as a new connection comes in however and thus
breaking the hashtable.
Instead make our own copy of the pubkey and store the pointer to that.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions