diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-11-08 23:25:45 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-11-08 23:25:45 +0000 |
commit | 13102e76b8d893f7a1f4a778cc16d5e67e719a12 (patch) | |
tree | 817fd0fb6d4a1be72beb54d824cf3f73582078ee | |
parent | a46bd01b9b1c9dc94fcf086229dbd5c50e8a6801 (diff) |
forwards_get() also calls alias_to_expand_node()
-rw-r--r-- | usr.sbin/smtpd/forward.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/forward.c b/usr.sbin/smtpd/forward.c index e9a245433bd..479e9169f6c 100644 --- a/usr.sbin/smtpd/forward.c +++ b/usr.sbin/smtpd/forward.c @@ -1,4 +1,4 @@ -/* $OpenBSD: forward.c,v 1.17 2009/11/08 23:08:56 gilles Exp $ */ +/* $OpenBSD: forward.c,v 1.18 2009/11/08 23:25:44 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -98,8 +98,7 @@ forwards_get(int fd, struct expandtree *expandtree) expnode = calloc(sizeof(struct expand_node), 1); if (expnode == NULL) fatal("calloc"); - expnode->type = alias.type; - expnode->u = alias.u; + alias_to_expand_node(expnode, &alias); expandtree_insert(expandtree, expnode); nbaliases++; } while (*cp != '\0'); |