diff options
author | Martin Willi <martin@revosec.ch> | 2012-01-10 17:09:20 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:31:35 +0100 |
commit | 5f2f864efc8f1ab0462c0f0edfd5af1ee5311728 (patch) | |
tree | b061258318050e11537be5d7588875cf7998e34e /src/libcharon/encoding/message.c | |
parent | 3fca5bd123021dadada62557798ec1f7b107a41a (diff) | |
download | strongswan-5f2f864efc8f1ab0462c0f0edfd5af1ee5311728.tar.bz2 strongswan-5f2f864efc8f1ab0462c0f0edfd5af1ee5311728.tar.xz |
Support IKEv1 notifies in message_t.get_notify()
Diffstat (limited to 'src/libcharon/encoding/message.c')
-rw-r--r-- | src/libcharon/encoding/message.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcharon/encoding/message.c b/src/libcharon/encoding/message.c index 99aca870a..4ca119dd5 100644 --- a/src/libcharon/encoding/message.c +++ b/src/libcharon/encoding/message.c @@ -1142,7 +1142,8 @@ METHOD(message_t, get_notify, notify_payload_t*, enumerator = create_payload_enumerator(this); while (enumerator->enumerate(enumerator, &payload)) { - if (payload->get_type(payload) == NOTIFY) + if (payload->get_type(payload) == NOTIFY || + payload->get_type(payload) == NOTIFY_V1) { notify = (notify_payload_t*)payload; if (notify->get_notify_type(notify) == type) |