summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgilles <gilles@openbsd.org>2015-12-11 21:23:42 +0000
committergilles <gilles@openbsd.org>2015-12-11 21:23:42 +0000
commite629184d5f3822423446152294e32c76e6b450b5 (patch)
tree5185987ed4688dafb13354cdba76b6283aecdae6
parentremove wrapper function and call LKSB key write directly (diff)
downloadwireguard-openbsd-e629184d5f3822423446152294e32c76e6b450b5.tar.xz
wireguard-openbsd-e629184d5f3822423446152294e32c76e6b450b5.zip
rename header_masquerade_callback() to header_domain_append_callback(), the
name was confusing on what this function really does
-rw-r--r--usr.sbin/smtpd/smtp_session.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 5a45a7e5031..7b5dc748fcc 100644
--- a/usr.sbin/smtpd/smtp_session.c
+++ b/usr.sbin/smtpd/smtp_session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtp_session.c,v 1.242 2015/12/03 21:11:33 jung Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.243 2015/12/11 21:23:42 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -334,7 +334,7 @@ header_append_domain_buffer(char *buffer, char *domain, size_t len)
}
static void
-header_masquerade_callback(const struct rfc2822_header *hdr, void *arg)
+header_domain_append_callback(const struct rfc2822_header *hdr, void *arg)
{
struct smtp_session *s = arg;
struct rfc2822_line *l;
@@ -485,11 +485,11 @@ smtp_session(struct listener *listener, int sock,
rfc2822_header_callback(&s->rfc2822_parser, "bcc",
header_bcc_callback, s);
rfc2822_header_callback(&s->rfc2822_parser, "from",
- header_masquerade_callback, s);
+ header_domain_append_callback, s);
rfc2822_header_callback(&s->rfc2822_parser, "to",
- header_masquerade_callback, s);
+ header_domain_append_callback, s);
rfc2822_header_callback(&s->rfc2822_parser, "cc",
- header_masquerade_callback, s);
+ header_domain_append_callback, s);
rfc2822_body_callback(&s->rfc2822_parser,
dataline_callback, s);