summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/parse.y5
-rw-r--r--usr.sbin/dvmrpd/parse.y5
-rw-r--r--usr.sbin/hostapd/parse.y5
-rw-r--r--usr.sbin/httpd/parse.y5
-rw-r--r--usr.sbin/ifstated/parse.y5
-rw-r--r--usr.sbin/iscsictl/parse.y5
-rw-r--r--usr.sbin/ldapd/parse.y5
-rw-r--r--usr.sbin/ldomctl/parse.y5
-rw-r--r--usr.sbin/ldpd/parse.y5
-rw-r--r--usr.sbin/npppd/npppd/parse.y5
-rw-r--r--usr.sbin/ntpd/parse.y5
-rw-r--r--usr.sbin/ospf6d/parse.y5
-rw-r--r--usr.sbin/ospfd/parse.y5
-rw-r--r--usr.sbin/relayd/parse.y5
-rw-r--r--usr.sbin/ripd/parse.y5
-rw-r--r--usr.sbin/smtpd/parse.y5
-rw-r--r--usr.sbin/snmpd/parse.y5
-rw-r--r--usr.sbin/ypldap/parse.y5
18 files changed, 72 insertions, 18 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index e0b06f8d6a1..b793b466b40 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.274 2014/11/03 16:55:59 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.275 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2395,6 +2395,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/dvmrpd/parse.y b/usr.sbin/dvmrpd/parse.y
index cef0d3a2ae6..66b7b73d157 100644
--- a/usr.sbin/dvmrpd/parse.y
+++ b/usr.sbin/dvmrpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.28 2014/11/14 03:20:36 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.29 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -570,6 +570,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/hostapd/parse.y b/usr.sbin/hostapd/parse.y
index b2b817adf5c..8a5ad076754 100644
--- a/usr.sbin/hostapd/parse.y
+++ b/usr.sbin/hostapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.47 2014/11/14 03:20:36 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.48 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@@ -1486,6 +1486,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/httpd/parse.y b/usr.sbin/httpd/parse.y
index cfb60ae7da4..6aa156ecdb8 100644
--- a/usr.sbin/httpd/parse.y
+++ b/usr.sbin/httpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.41 2014/11/11 15:54:45 beck Exp $ */
+/* $OpenBSD: parse.y,v 1.42 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -1066,6 +1066,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y
index 6ffa2098ad6..4794352c21a 100644
--- a/usr.sbin/ifstated/parse.y
+++ b/usr.sbin/ifstated/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.35 2014/11/03 18:44:36 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.36 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
@@ -568,6 +568,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/iscsictl/parse.y b/usr.sbin/iscsictl/parse.y
index eea5cfa1a37..b39b2e14906 100644
--- a/usr.sbin/iscsictl/parse.y
+++ b/usr.sbin/iscsictl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.6 2014/11/03 03:42:12 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.7 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2010 David Gwynne <dlg@openbsd.org>
@@ -544,6 +544,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ldapd/parse.y b/usr.sbin/ldapd/parse.y
index 21b5645b3ce..6bbb454397a 100644
--- a/usr.sbin/ldapd/parse.y
+++ b/usr.sbin/ldapd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.15 2014/11/14 03:20:36 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.16 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
@@ -619,6 +619,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
log_warnx("string too long");
diff --git a/usr.sbin/ldomctl/parse.y b/usr.sbin/ldomctl/parse.y
index 21398c5f20f..f986d83eef4 100644
--- a/usr.sbin/ldomctl/parse.y
+++ b/usr.sbin/ldomctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.5 2014/11/14 03:20:37 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.6 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2012 Mark Kettenis <kettenis@openbsd.org>
@@ -402,6 +402,9 @@ yylex(void)
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ldpd/parse.y b/usr.sbin/ldpd/parse.y
index 0b84a7718ef..b75128c8d5f 100644
--- a/usr.sbin/ldpd/parse.y
+++ b/usr.sbin/ldpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.22 2014/11/14 03:20:37 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.23 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2004, 2005, 2008 Esben Norby <norby@openbsd.org>
@@ -585,6 +585,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/npppd/npppd/parse.y b/usr.sbin/npppd/npppd/parse.y
index f075b9c6c54..34cc4e0a6a9 100644
--- a/usr.sbin/npppd/npppd/parse.y
+++ b/usr.sbin/npppd/npppd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.14 2014/11/16 19:07:50 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.15 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -1233,6 +1233,9 @@ yylex(void)
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y
index b5567912e34..9608c3f686d 100644
--- a/usr.sbin/ntpd/parse.y
+++ b/usr.sbin/ntpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.54 2014/11/14 03:20:37 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.55 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -520,6 +520,9 @@ yylex(void)
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ospf6d/parse.y b/usr.sbin/ospf6d/parse.y
index d2e39ad7b63..70e7d3eeb30 100644
--- a/usr.sbin/ospf6d/parse.y
+++ b/usr.sbin/ospf6d/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.26 2014/11/03 07:40:31 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.27 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -742,6 +742,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ospfd/parse.y b/usr.sbin/ospfd/parse.y
index b2bddfed364..48dd1c1a3ca 100644
--- a/usr.sbin/ospfd/parse.y
+++ b/usr.sbin/ospfd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.78 2014/11/03 07:40:31 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.79 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -927,6 +927,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/relayd/parse.y b/usr.sbin/relayd/parse.y
index d3e8641a970..f00d3343792 100644
--- a/usr.sbin/relayd/parse.y
+++ b/usr.sbin/relayd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.194 2014/11/19 10:24:40 blambert Exp $ */
+/* $OpenBSD: parse.y,v 1.195 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2007 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -2330,6 +2330,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ripd/parse.y b/usr.sbin/ripd/parse.y
index 107f06f5776..ddaca1377d6 100644
--- a/usr.sbin/ripd/parse.y
+++ b/usr.sbin/ripd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.33 2014/11/03 20:15:31 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.34 2014/11/20 05:51:20 jsg Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -595,6 +595,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y
index 3f9e658c97d..c8ae7e6587b 100644
--- a/usr.sbin/smtpd/parse.y
+++ b/usr.sbin/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.148 2014/11/16 19:07:50 bluhm Exp $ */
+/* $OpenBSD: parse.y,v 1.149 2014/11/20 05:51:21 jsg Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1494,6 +1494,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/snmpd/parse.y b/usr.sbin/snmpd/parse.y
index 64fedafec7f..ca1ea106860 100644
--- a/usr.sbin/snmpd/parse.y
+++ b/usr.sbin/snmpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.35 2014/11/19 10:19:00 blambert Exp $ */
+/* $OpenBSD: parse.y,v 1.36 2014/11/20 05:51:21 jsg Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -812,6 +812,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");
diff --git a/usr.sbin/ypldap/parse.y b/usr.sbin/ypldap/parse.y
index 2f0e00e4bcf..1ca61fb1df4 100644
--- a/usr.sbin/ypldap/parse.y
+++ b/usr.sbin/ypldap/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.16 2014/11/14 03:20:37 doug Exp $ */
+/* $OpenBSD: parse.y,v 1.17 2014/11/20 05:51:21 jsg Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -564,6 +564,9 @@ top:
} else if (c == quotec) {
*p = '\0';
break;
+ } else if (c == '\0') {
+ yyerror("syntax error");
+ return (findeol());
}
if (p + 1 >= buf + sizeof(buf) - 1) {
yyerror("string too long");