summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2011-12-15 19:51:24 +0000
committerEric Faurot <eric@cvs.openbsd.org>2011-12-15 19:51:24 +0000
commit9d0b73e44d12abd9daf1e3ef6244d20ab28f0af2 (patch)
tree781d7b113fdaf2c112a0886af2f6710da3553fc7 /usr.sbin
parent28da69714d77e626cfd7169925df870feb9acc1a (diff)
better size check
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/smtpd/asr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/asr.c b/usr.sbin/smtpd/asr.c
index 0390e324914..48ee21b9efb 100644
--- a/usr.sbin/smtpd/asr.c
+++ b/usr.sbin/smtpd/asr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: asr.c,v 1.10 2011/07/13 16:14:43 eric Exp $ */
+/* $OpenBSD: asr.c,v 1.11 2011/12/15 19:51:23 eric Exp $ */
/*
* Copyright (c) 2010,2011 Eric Faurot <eric@openbsd.org>
*
@@ -1145,7 +1145,7 @@ asr_ensure_buf(struct asr_query *aq, size_t n)
return (0);
}
- if (aq->aq_bufsize > n)
+ if (aq->aq_bufsize >= n)
return (0);
t = realloc(aq->aq_buf, n);