summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-11-14 20:18:48 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-11-14 20:18:48 +0000
commita8ad5ce164dcca73145a3c6fecf18f7e63d0cc5e (patch)
treebd7faf67f1992cac2621dec9d82d80818727c67d /usr.bin
parent0626d4d97f32f244625e741aeb037c1ab02e3bab (diff)
The BN_add_word() bug has been squashed, so we don't need a workaround
any more.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/dc/inout.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/dc/inout.c b/usr.bin/dc/inout.c
index 5daaa081ca7..3fcd6d9c8ff 100644
--- a/usr.bin/dc/inout.c
+++ b/usr.bin/dc/inout.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inout.c,v 1.7 2003/10/22 12:03:54 otto Exp $ */
+/* $OpenBSD: inout.c,v 1.8 2003/11/14 20:18:47 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: inout.c,v 1.7 2003/10/22 12:03:54 otto Exp $";
+static const char rcsid[] = "$OpenBSD: inout.c,v 1.8 2003/11/14 20:18:47 otto Exp $";
#endif /* not lint */
#include <ssl/ssl.h>
@@ -207,8 +207,10 @@ readnumber(struct source *src, u_int base)
bn_check(BN_mul_word(n->number, base));
+#if 0
/* work around a bug in BN_add_word: 0 += 0 is buggy.... */
if (v > 0)
+#endif
bn_check(BN_add_word(n->number, v));
}
if (sign)