projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6ca7a
)
free_connection_partially(): Avoid possible use-after-free for c->hischallenge
author
Sven-Haegar Koch
<haegar@sdinet.de>
Fri, 20 Apr 2012 23:59:01 +0000
(
01:59
+0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 8 May 2012 14:18:18 +0000
(16:18 +0200)
src/connection.c
patch
|
blob
|
history
diff --git
a/src/connection.c
b/src/connection.c
index
dd52448
..
6fdd2bc
100644
(file)
--- a/
src/connection.c
+++ b/
src/connection.c
@@
-64,8
+64,10
@@
void free_connection_partially(connection_t *c) {
ecdsa_free(&c->ecdsa);
rsa_free(&c->rsa);
- if(c->hischallenge)
+ if(c->hischallenge)
{
free(c->hischallenge);
+ c->hischallenge = NULL;
+ }
buffer_clear(&c->inbuf);
buffer_clear(&c->outbuf);