summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-01-11 21:43:38 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2010-01-11 21:43:38 +0000
commitb2c42945c9a64368bdcc5fe2905c45ab974d93d7 (patch)
treec2cca25f6cec94fc13274cf0f6b0c2723356aa41
parent348abe6b37362cc4637afb83c02f1fa4266aa222 (diff)
Fix wrong logic in error checking of buf_dynamic, found by pcc.
-rw-r--r--usr.sbin/smtpd/enqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c
index ef25596661b..9062e0b410a 100644
--- a/usr.sbin/smtpd/enqueue.c
+++ b/usr.sbin/smtpd/enqueue.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: enqueue.c,v 1.31 2009/12/23 17:16:03 jacekm Exp $ */
+/* $OpenBSD: enqueue.c,v 1.32 2010/01/11 21:43:37 jacekm Exp $ */
/*
* Copyright (c) 2005 Henning Brauer <henning@bulabula.org>
@@ -199,7 +199,7 @@ enqueue(int argc, char *argv[])
verbose);
/* parse message */
- if ((body = buf_dynamic(0, SIZE_T_MAX)) < 0)
+ if ((body = buf_dynamic(0, SIZE_T_MAX)) == NULL)
err(1, "buf_dynamic failed");
noheader = parse_message(stdin, fake_from == NULL, tflag, body);