artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71e2539
)
Explicitly NULL pointers to avoid a double free.
author
tb
<tb@openbsd.org>
Sun, 4 Apr 2021 19:36:09 +0000
(19:36 +0000)
committer
tb
<tb@openbsd.org>
Sun, 4 Apr 2021 19:36:09 +0000
(19:36 +0000)
regress/lib/libcrypto/bn/mont/mont.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/bn/mont/mont.c
b/regress/lib/libcrypto/bn/mont/mont.c
index
83d56e5
..
54626b5
100644
(file)
--- a/
regress/lib/libcrypto/bn/mont/mont.c
+++ b/
regress/lib/libcrypto/bn/mont/mont.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mont.c,v 1.
3 2021/04/04 19:32:26
tb Exp $ */
+/* $OpenBSD: mont.c,v 1.
4 2021/04/04 19:36:09
tb Exp $ */
/*
* Copyright (c) 2014 Miodrag Vallat.
@@
-63,7
+63,9
@@
main(int argc, char *argv[])
goto err;
free(key);
+ key = NULL;
DH_free(dh);
+ dh = NULL;
}
return 0;