projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf4d22
)
Fix calling freeaddrinfo() on the wrong pointer.
author
Guus Sliepen
<guus@tinc-vpn.org>
Mon, 22 Jan 2018 17:05:09 +0000
(18:05 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Mon, 22 Jan 2018 17:05:09 +0000
(18:05 +0100)
Thanks to Todd C. Miller for finding this issue.
src/address_cache.c
patch
|
blob
|
history
diff --git
a/src/address_cache.c
b/src/address_cache.c
index
552e1f2
..
42b671b
100644
(file)
--- a/
src/address_cache.c
+++ b/
src/address_cache.c
@@
-178,8
+178,8
@@
const sockaddr_t *get_recent_address(address_cache_t *cache) {
cache->aip = cache->aip->ai_next;
if(!cache->aip) {
- freeaddrinfo(cache->ai
p
);
- cache->aip = NULL;
+ freeaddrinfo(cache->ai);
+ cache->ai
= cache->ai
p = NULL;
}
return sa;