diff options
author | jsing <> | 2017-08-12 02:50:05 +0000 |
---|---|---|
committer | jsing <> | 2017-08-12 02:50:05 +0000 |
commit | 0b7f072258d7c4dc45d470d21ddb06b4cba1a765 (patch) | |
tree | 00917aae92ffb2a9da10d65b5a48a52625a4de0f /src/lib | |
parent | db3d7e1bbb77452429c11d61f4e6c70aa46983f6 (diff) | |
download | openbsd-0b7f072258d7c4dc45d470d21ddb06b4cba1a765.tar.gz openbsd-0b7f072258d7c4dc45d470d21ddb06b4cba1a765.tar.bz2 openbsd-0b7f072258d7c4dc45d470d21ddb06b4cba1a765.zip |
Clear the child pointer in CBB_cleanup(), so that we have fewer pointers
hanging around to potentially invalid address space.
Discussed with beck@ and doug@
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/bs_cbb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libssl/bs_cbb.c b/src/lib/libssl/bs_cbb.c index dd1dc73d09..9de75fbb02 100644 --- a/src/lib/libssl/bs_cbb.c +++ b/src/lib/libssl/bs_cbb.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: bs_cbb.c,v 1.16 2017/05/07 05:03:41 jsing Exp $ */ | 1 | /* $OpenBSD: bs_cbb.c,v 1.17 2017/08/12 02:50:05 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014, Google Inc. | 3 | * Copyright (c) 2014, Google Inc. |
4 | * | 4 | * |
@@ -87,6 +87,7 @@ CBB_cleanup(CBB *cbb) | |||
87 | free(cbb->base); | 87 | free(cbb->base); |
88 | } | 88 | } |
89 | cbb->base = NULL; | 89 | cbb->base = NULL; |
90 | cbb->child = NULL; | ||
90 | } | 91 | } |
91 | 92 | ||
92 | static int | 93 | static int |