diff options
Diffstat (limited to 'usr.sbin/smtpd/parse.y')
-rw-r--r-- | usr.sbin/smtpd/parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 8605a94d8fe..8967292b4bb 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.64 2010/08/03 18:42:41 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.65 2010/09/08 23:32:27 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -978,6 +978,10 @@ rule : decision on from { struct rule *subr; struct cond *cond; + if ($8) + (void)strlcpy(rule->r_tag, $8, sizeof(rule->r_tag)); + free($8); + while ((cond = TAILQ_FIRST(conditions)) != NULL) { if ((subr = calloc(1, sizeof(*subr))) == NULL) |