diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2011-12-15 19:51:24 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2011-12-15 19:51:24 +0000 |
commit | 9d0b73e44d12abd9daf1e3ef6244d20ab28f0af2 (patch) | |
tree | 781d7b113fdaf2c112a0886af2f6710da3553fc7 /usr.sbin | |
parent | 28da69714d77e626cfd7169925df870feb9acc1a (diff) |
better size check
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/smtpd/asr.c | 4 |
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); |