summaryrefslogtreecommitdiff
path: root/contrib/sendmail/src/readcf.c
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-08-21 01:31:44 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2001-08-21 01:31:44 +0000
commitc86d59657f992c17a947200225b50f07e1776cd1 (patch)
tree2cfd003f88c7ffe91602b6a6c0b69bee7b4d62db /contrib/sendmail/src/readcf.c
parent13058a916175518dfbac6ce66b9b8e22ecf43155 (diff)
Notes
Diffstat (limited to 'contrib/sendmail/src/readcf.c')
-rw-r--r--contrib/sendmail/src/readcf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/contrib/sendmail/src/readcf.c b/contrib/sendmail/src/readcf.c
index cb1923b66031..73acff59daa3 100644
--- a/contrib/sendmail/src/readcf.c
+++ b/contrib/sendmail/src/readcf.c
@@ -12,7 +12,7 @@
*/
#ifndef lint
-static char id[] = "@(#)$Id: readcf.c,v 8.382.4.42 2001/07/31 22:30:24 gshapiro Exp $";
+static char id[] = "@(#)$Id: readcf.c,v 8.382.4.43 2001/08/14 23:08:13 ca Exp $";
#endif /* ! lint */
#include <sendmail.h>
@@ -267,6 +267,11 @@ readcf(cfname, safe, e)
syserr("R line: null LHS");
rwp->r_lhs = null_list;
}
+ if (nfuzzy > MAXMATCH)
+ {
+ syserr("R line: too many wildcards");
+ rwp->r_lhs = null_list;
+ }
/* expand and save the RHS */
while (*++p == '\t')