Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/agc-netpgp-standalone]: src/crypto/external/bsd/netpgp/dist/src/libbn Fi...
details: https://anonhg.NetBSD.org/src/rev/079476a83f62
branches: agc-netpgp-standalone
changeset: 777808:079476a83f62
user: agc <agc%NetBSD.org@localhost>
date: Fri Sep 21 03:03:52 2012 +0000
description:
Fix an inverted test
diffstat:
crypto/external/bsd/netpgp/dist/src/libbn/bignum.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 659ab1ed36f7 -r 079476a83f62 crypto/external/bsd/netpgp/dist/src/libbn/bignum.c
--- a/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c Sun May 06 18:18:39 2012 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c Fri Sep 21 03:03:52 2012 +0000
@@ -5089,7 +5089,7 @@
if (mp_radix_size(__UNCONST(a), radix, &len) != MP_OKAY) {
return NULL;
}
- if ((s = netpgp_allocate(1, len)) == NULL) {
+ if ((s = netpgp_allocate(1, len)) != NULL) {
if (mp_toradix_n(__UNCONST(a), s, radix, len) != MP_OKAY) {
netpgp_deallocate(s, len);
return NULL;
Home |
Main Index |
Thread Index |
Old Index