Module Name: src
Committed By: agc
Date: Fri Sep 21 03:03:53 UTC 2012
Modified Files:
src/crypto/external/bsd/netpgp/dist/src/libbn [agc-netpgp-standalone]:
bignum.c
Log Message:
Fix an inverted test
To generate a diff of this commit:
cvs rdiff -u -r1.1.2.1 -r1.1.2.2 \
src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c
diff -u src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c:1.1.2.1 src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c:1.1.2.2
--- src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c:1.1.2.1 Sun May 6 17:34:55 2012
+++ src/crypto/external/bsd/netpgp/dist/src/libbn/bignum.c Fri Sep 21 03:03:52 2012
@@ -5089,7 +5089,7 @@ formatbn(const BIGNUM *a, const int radi
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;