aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/message.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2005-11-17 14:28:07 +0000
committerMartin Willi <martin@strongswan.org>2005-11-17 14:28:07 +0000
commitc1e9c3f69739ff4519006922f6be5ef89c06a742 (patch)
treeefbaf25a888c3b348a811423aa7a6e68767a7cfd /Source/charon/message.c
parent6d63e6864e45f17386aedd1f6f5e56c957cb9c01 (diff)
downloadstrongswan-c1e9c3f69739ff4519006922f6be5ef89c06a742.tar.bz2
strongswan-c1e9c3f69739ff4519006922f6be5ef89c06a742.tar.xz
""
Diffstat (limited to 'Source/charon/message.c')
-rw-r--r--Source/charon/message.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/charon/message.c b/Source/charon/message.c
index d30648fca..b0146eb97 100644
--- a/Source/charon/message.c
+++ b/Source/charon/message.c
@@ -469,9 +469,13 @@ static status_t generate(private_message_t *this, packet_t **packet)
ike_header->set_response_flag(ike_header, !this->is_request);
ike_header->set_initiator_flag(ike_header, is_initiator);
ike_header->set_initiator_spi(ike_header, initiator_spi);
- ike_header->set_initiator_spi(ike_header, responder_spi);
-
+ ike_header->set_responder_spi(ike_header, responder_spi);
+
generator = generator_create();
+ if (generator == NULL)
+ {
+ return OUT_OF_RES;
+ }
payload = (payload_t*)ike_header;