diff options
author | 2011-11-16 10:24:41 +0000 | |
---|---|---|
committer | 2011-11-16 10:24:41 +0000 | |
commit | b45988eddca6752623e67046128a2525f43abc3b (patch) | |
tree | 89b7c026b25d1b4833c777f5f578c58d4a439985 | |
parent | do not Xr non-existent man pages; (diff) | |
download | wireguard-openbsd-b45988eddca6752623e67046128a2525f43abc3b.tar.xz wireguard-openbsd-b45988eddca6752623e67046128a2525f43abc3b.zip |
fix obvious variable substitution mistake
change code type back to int8_t
ok gilles@
-rw-r--r-- | usr.sbin/smtpd/filter.c | 4 | ||||
-rw-r--r-- | usr.sbin/smtpd/filter.h | 4 |
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; |