pkgsrc/security/isakmpd/patches/patch-aj
agc d1cf13dbac Update to isakmpd version 20030903.
No changelog available, but many bugs fixed, and these sources will
compile with gcc-3.3.1 (well, after I tweaked them).  With thanks to
Christoph Badura for most of this work, I merely did the gcc-3.3.1
patching.
2003-10-10 12:56:18 +00:00

19 lines
746 B
Text

$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);