Don't accept IKEv2 packets if IKEv2 disabled
authorMartin Willi <martin@revosec.ch>
Mon, 19 Dec 2011 14:45:03 +0000 (15:45 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:28 +0000 (17:31 +0100)
src/libcharon/network/receiver.c

index 9e4fddf..6b408cc 100644 (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;