Support IKEv1 notifies in message_t.get_notify()
authorMartin Willi <martin@revosec.ch>
Tue, 10 Jan 2012 16:09:20 +0000 (17:09 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:35 +0000 (17:31 +0100)
src/libcharon/encoding/message.c

index 99aca87..4ca119d 100644 (file)
@@ -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)