artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ad5e26
)
Restore a check before BN_free() that needs to exist and write it such that
author
jsing
<jsing@openbsd.org>
Wed, 7 Feb 2018 08:57:25 +0000
(08:57 +0000)
committer
jsing
<jsing@openbsd.org>
Wed, 7 Feb 2018 08:57:25 +0000
(08:57 +0000)
the intent is more obvious.
usr.bin/openssl/apps.c
patch
|
blob
|
history
diff --git
a/usr.bin/openssl/apps.c
b/usr.bin/openssl/apps.c
index
22b6b28
..
90baf65
100644
(file)
--- a/
usr.bin/openssl/apps.c
+++ b/
usr.bin/openssl/apps.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: apps.c,v 1.4
6 2018/02/07 05:47:5
5 jsing Exp $ */
+/* $OpenBSD: apps.c,v 1.4
7 2018/02/07 08:57:2
5 jsing Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@
-1425,7
+1425,8
@@
rand_serial(BIGNUM *b, ASN1_INTEGER *ai)
ret = 1;
error:
- BN_free(btmp);
+ if (b != btmp)
+ BN_free(btmp);
return ret;
}