[strongSwan-dev] [PATCH] fix error-type range in ike_auth parsing of NOTIFY payloads

Marius Tomaschewski mt at suse.de
Wed Sep 29 16:00:46 CEST 2010


diff --git a/src/libcharon/sa/tasks/ike_auth.c b/src/libcharon/sa/tasks/ike_auth.c
index 32a3118..b440ec8 100644
--- a/src/libcharon/sa/tasks/ike_auth.c
+++ b/src/libcharon/sa/tasks/ike_auth.c
@@ -825,7 +825,7 @@ static status_t process_i(private_ike_auth_t *this, message_t *message)
 					break;
 				default:
 				{
-					if (type < 16383)
+					if (type <= 16383)
 					{
 						DBG1(DBG_IKE, "received %N notify error",
 							 notify_type_names, type);
-- 
1.7.1





More information about the Dev mailing list