$NetBSD: patch-aj,v 1.1 2003/10/10 12:56:18 agc Exp $ --- message.c 2003/10/05 02:10:45 1.1 +++ message.c 2003/10/05 02:11:57 @@ -1188,8 +1188,14 @@ * Now we can validate DOI-specific exchange types. If we have no SA * DOI-specific exchange types are definitely wrong. */ +#if 0 if (exch_type >= ISAKMP_EXCH_DOI_MIN && exch_type <= ISAKMP_EXCH_DOI_MAX && msg->exchange->doi->validate_exchange (exch_type)) +#else + /* gcc 3.3.1 barfs on u_int8_t <= 255 */ + if (exch_type >= ISAKMP_EXCH_DOI_MIN + && msg->exchange->doi->validate_exchange (exch_type)) +#endif { log_print ("message_recv: invalid DOI exchange type %d", exch_type); message_drop (msg, ISAKMP_NOTIFY_INVALID_EXCHANGE_TYPE, 0, 1, 1);