diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 20:46:19 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2007-01-08 20:46:19 +0000 |
commit | d2a88ab3b0308a674c3609dab5a1c649a213d4b6 (patch) | |
tree | d0e77f8b1cbad2e44b96cb1ce687214f82ea74e4 /usr.sbin/relayd/buffer.c | |
parent | 051775e7c079472efd1c6ab240f54f6e71f75d42 (diff) |
do NOT use the regexp interface. it is way to complicated, error-prone
and we don't know about all the possible security problems.
change the check send/expect code to use the fnmatch(3) interface
using shell globbing rules instead. this allows simple patterns like
"220 * ESMTP*" or "SSH-[12].??-*".
suggested by deraadt@ and otto@
ok Pierre-Yves Ritschard (pyr at spootnik dot org)
Diffstat (limited to 'usr.sbin/relayd/buffer.c')
-rw-r--r-- | usr.sbin/relayd/buffer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/relayd/buffer.c b/usr.sbin/relayd/buffer.c index 547d65ed859..6f462a2d44f 100644 --- a/usr.sbin/relayd/buffer.c +++ b/usr.sbin/relayd/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.2 2007/01/08 13:37:26 reyk Exp $ */ +/* $OpenBSD: buffer.c,v 1.3 2007/01/08 20:46:18 reyk Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -29,7 +29,6 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <regex.h> #include "hostated.h" |