diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2011-05-09 09:36:56 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2011-05-09 09:36:56 +0000 |
commit | a6e778d9a0143a83d7062738bf103960e7da5f19 (patch) | |
tree | e7aba53b1765ada8d61c7a1897bae62269711e35 /usr.sbin/smtpd/makemap.c | |
parent | 9e98fa48614e64d893e77e0f7386143b1a3904ff (diff) |
fix segfault in newaliases after global env move.
spotted by Christopher Zimmermann
ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/makemap.c')
-rw-r--r-- | usr.sbin/smtpd/makemap.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c index b8d92d1a7fb..31ab5f994c5 100644 --- a/usr.sbin/smtpd/makemap.c +++ b/usr.sbin/smtpd/makemap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: makemap.c,v 1.30 2011/05/01 12:57:11 eric Exp $ */ +/* $OpenBSD: makemap.c,v 1.31 2011/05/09 09:36:55 eric Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -388,12 +388,11 @@ error: char * conf_aliases(char *cfgpath) { - struct smtpd smtpd; struct map *map; char *path; char *p; - if (parse_config(&smtpd, cfgpath, 0)) + if (parse_config(env, cfgpath, 0)) exit(1); map = map_findbyname("aliases"); |