Set up a default value for Mode Config Pool size if pool address specified but pool size not specified

This commit is contained in:
vanhu 2008-11-27 15:04:21 +00:00
parent 054e0e851d
commit 3a74e20575

View File

@ -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 ();