summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2011-12-15 19:51:23 +0000
committereric <eric@openbsd.org>2011-12-15 19:51:23 +0000
commit6b361608f9088a72cac0af8274efeda456677dbb (patch)
tree2c660f8d795d06a75f23edb1ac68fd7bc5dd26ac
parentall leading dots must be duplicated. (diff)
downloadwireguard-openbsd-6b361608f9088a72cac0af8274efeda456677dbb.tar.xz
wireguard-openbsd-6b361608f9088a72cac0af8274efeda456677dbb.zip
better size check
-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);