diff options
author | 2009-03-06 23:29:06 +0000 | |
---|---|---|
committer | 2009-03-06 23:29:06 +0000 | |
commit | e6ee1168a32e40e9ee5f6143e5008780b4806010 (patch) | |
tree | 91c532d7c26b471b206a4c0cba8dc006c3271217 | |
parent | Work-around a gcc3 -g bug causing debug ld.so to crash. (diff) | |
download | wireguard-openbsd-e6ee1168a32e40e9ee5f6143e5008780b4806010.tar.xz wireguard-openbsd-e6ee1168a32e40e9ee5f6143e5008780b4806010.zip |
fix a bug in the generation of plain maps which would cause the value not
to be correctly inserted into the map.
-rw-r--r-- | usr.sbin/smtpd/makemap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/makemap.c b/usr.sbin/smtpd/makemap.c index f18bfd13b84..30637fc136f 100644 --- a/usr.sbin/smtpd/makemap.c +++ b/usr.sbin/smtpd/makemap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: makemap.c,v 1.11 2009/02/22 11:44:29 form Exp $ */ +/* $OpenBSD: makemap.c,v 1.12 2009/03/06 23:29:06 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -273,7 +273,7 @@ make_plain(DBT *val, char *text) err(1, "calloc"); a->type = ALIAS_TEXT; - val->data = a; + val->data = a->u.text; val->size = strlcpy(a->u.text, text, sizeof(a->u.text)); if (val->size >= sizeof(a->u.text)) { |