summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2014-12-17 15:49:24 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2014-12-17 15:49:24 +0000
commit314a304b5ff0e129f9ef0fc630d70ff0dcdddbab (patch)
tree62c8ea1f67c1211f756cb17ac863c0e6c47c485a
parent912d7cc5d83f4789e91fddfcf62ec5db794d0d93 (diff)
Use log_warnx() not log_warn() for mail loop warning since errno
is not set. OK gilles@
-rw-r--r--usr.sbin/smtpd/smtp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/smtp_session.c b/usr.sbin/smtpd/smtp_session.c
index 389942bdda7..3173c5b8143 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.220 2014/11/02 21:46:03 gilles Exp $ */
+/* $OpenBSD: smtp_session.c,v 1.221 2014/12/17 15:49:23 millert Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -1810,7 +1810,7 @@ smtp_message_write(struct smtp_session *s, const char *line)
s->rcvcount++;
if (s->rcvcount == MAX_HOPS_COUNT) {
s->msgflags |= MF_ERROR_LOOP;
- log_warn("warn: loop detected");
+ log_warnx("warn: loop detected");
return;
}
}