diff --git a/crypto/dist/ipsec-tools/src/racoon/main.c b/crypto/dist/ipsec-tools/src/racoon/main.c index e64016415dd8..a5a6a336a439 100644 --- a/crypto/dist/ipsec-tools/src/racoon/main.c +++ b/crypto/dist/ipsec-tools/src/racoon/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.8 2008/07/22 01:30:02 mgrooms Exp $ */ +/* $NetBSD: main.c,v 1.9 2008/11/27 15:04:21 vanhu Exp $ */ /* Id: main.c,v 1.25 2006/06/20 20:31:34 manubsd Exp */ @@ -219,6 +219,12 @@ main(ac, av) errx(1, "failed to parse configuration file."); restore_params(); +#ifdef ENABLE_HYBRID + if(isakmp_cfg_config.network4 && isakmp_cfg_config.pool_size == 0) + if ((error = isakmp_cfg_resize_pool(ISAKMP_CFG_MAX_CNX)) != 0) + return error; +#endif + if (dump_config) dumprmconf ();