]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/cfparse.y
ipsec-326.81.1.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / cfparse.y
index bd811841c78812038b8834c3dde77a515c8d66a5..e38768173ab7b443e6d84ed36c3d34170cc4e7e3 100644 (file)
@@ -85,7 +85,6 @@
 #include "isakmp_frag.h"
 #include "session.h"
 #ifdef ENABLE_HYBRID
-#include "resolv.h"
 #include "isakmp_unity.h"
 #include "isakmp_xauth.h"
 #include "isakmp_cfg.h"
@@ -711,7 +710,7 @@ addrdns
 #ifdef ENABLE_HYBRID
                        struct isakmp_cfg_config *icc = &isakmp_cfg_config;
 
-                       if (icc->dns4_index > MAXNS) {
+                       if (icc->dns4_index >= MAXNS) {
                                racoon_yyerror("No more than %d DNS", MAXNS);
                 return -1;
             }
@@ -736,7 +735,7 @@ addrwins
 #ifdef ENABLE_HYBRID
                        struct isakmp_cfg_config *icc = &isakmp_cfg_config;
 
-                       if (icc->nbns4_index > MAXWINS) {
+                       if (icc->nbns4_index >= MAXWINS) {
                                racoon_yyerror("No more than %d WINS", MAXWINS);
                 return -1;
             }