summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/control.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-08-08 17:33:56 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-08-08 17:33:56 +0000
commite9e21710716aeb3946cfd138c7905139e9809c47 (patch)
tree0ada24b2c0719504f4a4f849324f2ced792530d2 /usr.sbin/smtpd/control.c
parent33eccc9247b81f370b77d4f1c29c2f32f89889d8 (diff)
remove useless defines
ok gilles@ chl@
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r--usr.sbin/smtpd/control.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c
index 875bf2a081e..2808e7bfd2f 100644
--- a/usr.sbin/smtpd/control.c
+++ b/usr.sbin/smtpd/control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: control.c,v 1.65 2012/07/09 09:57:53 gilles Exp $ */
+/* $OpenBSD: control.c,v 1.66 2012/08/08 17:33:55 eric Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -374,7 +374,7 @@ control_dispatch_ext(int fd, short event, void *arg)
if (euid)
goto badcred;
- if (IMSG_DATA_SIZE(&imsg) != sizeof(verbose))
+ if (imsg.hdr.len - IMSG_HEADER_SIZE != sizeof(verbose))
goto badcred;
memcpy(&verbose, imsg.data, sizeof(verbose));