summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2011-11-16 10:24:42 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2011-11-16 10:24:42 +0000
commitd4454191d3605ab52a417b547678581296b4e257 (patch)
tree6dff54997e1c777586e26e77487225138e246ce3 /usr.sbin
parent073d3f67335147900dffcdd5dc790b7ca63658b5 (diff)
fix obvious variable substitution mistake
change code type back to int8_t ok gilles@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/filter.c4
-rw-r--r--usr.sbin/smtpd/filter.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/filter.c b/usr.sbin/smtpd/filter.c
index 1f11b6c3f8d..39c4e634c84 100644
--- a/usr.sbin/smtpd/filter.c
+++ b/usr.sbin/smtpd/filter.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: filter.c,v 1.3 2011/11/15 23:22:47 gilles Exp $ */
+/* $OpenBSD: filter.c,v 1.4 2011/11/16 10:24:41 chl Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org>
@@ -211,7 +211,7 @@ filter_handler(int fd, short event, void *p)
errx(1, "unsupported imsg");
}
- switch (fm.code) {
+ switch (ret) {
case STATUS_ACCEPT:
case STATUS_REJECT:
fm.code = ret;
diff --git a/usr.sbin/smtpd/filter.h b/usr.sbin/smtpd/filter.h
index e445f4742b1..6c33e4654a1 100644
--- a/usr.sbin/smtpd/filter.h
+++ b/usr.sbin/smtpd/filter.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: filter.h,v 1.4 2011/11/15 23:22:47 gilles Exp $ */
+/* $OpenBSD: filter.h,v 1.5 2011/11/16 10:24:41 chl Exp $ */
/*
* Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org>
@@ -73,7 +73,7 @@ union filter_union {
struct filter_msg {
u_int64_t id; /* set by smtpd(8) */
u_int64_t cl_id; /* set by smtpd(8) */
- u_int8_t code;
+ int8_t code;
u_int8_t version;
enum filter_type type;
union filter_union u;