summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2018-11-02 13:46:00 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2018-11-02 13:46:00 +0000
commitf1c343c1f6e0744b7970524ebec2b141981e7861 (patch)
tree7a02a26d6f3987f901dbaef3f05a0a4a9a09002f /usr.sbin/smtpd
parent7b51944e8c4fbbbbc05ea3d84ae1dbc812a8f2c1 (diff)
add REG_NOSUB to flags in regcompile
suggested by jung@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/table.c b/usr.sbin/smtpd/table.c
index 902c33b5ee6..7577193d152 100644
--- a/usr.sbin/smtpd/table.c
+++ b/usr.sbin/smtpd/table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table.c,v 1.31 2018/11/01 10:47:46 gilles Exp $ */
+/* $OpenBSD: table.c,v 1.32 2018/11/02 13:45:59 gilles Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
@@ -464,7 +464,7 @@ table_regex_match(const char *string, const char *pattern)
{
regex_t preg;
- if (regcomp(&preg, pattern, REG_EXTENDED) != 0)
+ if (regcomp(&preg, pattern, REG_EXTENDED|REG_NOSUB) != 0)
return (0);
if (regexec(&preg, string, 0, NULL, 0) != 0)