Don't accept IKEv2 packets if IKEv2 disabled

This commit is contained in:
Martin Willi committed 2012-03-20 17:31:28 +01:00
1 parent 7d788af0a0
commit 38bb727c06
1 file changed
+2
+2
View File
@@ -376,8 +376,10 @@ static job_requeue_t receive_packets(private_receiver_t *this)
/* check IKE major version */
switch (message->get_major_version(message))
{
#ifdef USE_IKEV2
case IKEV2_MAJOR_VERSION:
break;
#endif /* USE_IKEV2 */
#ifdef USE_IKEV1
case IKEV1_MAJOR_VERSION:
break;