strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0bf721
)
tls: Fix a memory leak if AEAD encryption fails
author
Martin Willi
<martin@revosec.ch>
Wed, 15 Oct 2014 12:20:36 +0000
(14:20 +0200)
committer
Martin Willi
<martin@revosec.ch>
Wed, 15 Oct 2014 12:21:01 +0000
(14:21 +0200)
src/libtls/tls_aead.c
patch
|
blob
|
history
diff --git
a/src/libtls/tls_aead.c
b/src/libtls/tls_aead.c
index
1d0779d
..
67cfd3a
100644
(file)
--- a/
src/libtls/tls_aead.c
+++ b/
src/libtls/tls_aead.c
@@
-82,6
+82,7
@@
METHOD(tls_aead_t, encrypt, bool,
assoc = chunk_from_thing(hdr);
if (!this->aead->encrypt(this->aead, plain, assoc, iv, NULL))
{
+ chunk_free(&encrypted);
return FALSE;
}
chunk_free(data);