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:
1142726
)
Use has_more in decrypt_payloads instead of calling enumerate twice.
author
Tobias Brunner
<tobias@strongswan.org>
Thu, 9 Jun 2011 07:55:44 +0000
(09:55 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Wed, 6 Jul 2011 07:43:46 +0000
(09:43 +0200)
src/libcharon/encoding/message.c
patch
|
blob
|
history
diff --git
a/src/libcharon/encoding/message.c
b/src/libcharon/encoding/message.c
index
214612f
..
f99cb80
100644
(file)
--- a/
src/libcharon/encoding/message.c
+++ b/
src/libcharon/encoding/message.c
@@
-1312,7
+1312,7
@@
static status_t decrypt_payloads(private_message_t *this, aead_t *aead)
DBG2(DBG_ENC, "found an encryption payload");
- if (
enumerator->enumerate(enumerator, &payload
))
+ if (
this->payloads->has_more(this->payloads, enumerator
))
{
DBG1(DBG_ENC, "encrypted payload is not last payload");
status = VERIFY_ERROR;