corrected ME_ENDPOINT length check
authorTobias Brunner <tobias@strongswan.org>
Thu, 27 Mar 2008 12:29:51 +0000 (12:29 -0000)
committerTobias Brunner <tobias@strongswan.org>
Thu, 27 Mar 2008 12:29:51 +0000 (12:29 -0000)
src/charon/encoding/payloads/notify_payload.c

index 2391901..ec22d06 100644 (file)
@@ -333,7 +333,8 @@ static status_t verify(private_notify_payload_t *this)
                        break;
                }
                case ME_ENDPOINT:
                        break;
                }
                case ME_ENDPOINT:
-                       if (this->notification_data.len != 12 ||
+                       if (this->notification_data.len != 8 &&
+                               this->notification_data.len != 12 &&
                                this->notification_data.len != 24)
                        {
                                bad_length = TRUE;
                                this->notification_data.len != 24)
                        {
                                bad_length = TRUE;