]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
fix error-type range in parsing of NOTIFY payloads
authorJiri Bohac <jbohac@suse.cz>
Thu, 5 Aug 2010 15:13:38 +0000 (17:13 +0200)
committerMartin Willi <martin@revosec.ch>
Fri, 6 Aug 2010 09:47:35 +0000 (11:47 +0200)
src/libcharon/sa/tasks/ike_init.c

index 38fb572f44412115c36e1734e8970b6fc5d6b2da..dd4a5f5c03ca072f6d44f58f8cfe0e08d5f765e7 100644 (file)
@@ -468,7 +468,7 @@ static status_t process_i(private_ike_init_t *this, message_t *message)
                                }
                                default:
                                {
-                                       if (type < 16383)
+                                       if (type <= 16383)
                                        {
                                                DBG1(DBG_IKE, "received %N notify error",
                                                         notify_type_names, type);