From 0b7f072258d7c4dc45d470d21ddb06b4cba1a765 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 12 Aug 2017 02:50:05 +0000 Subject: 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@ --- src/lib/libssl/bs_cbb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib') 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 @@ -/* $OpenBSD: bs_cbb.c,v 1.16 2017/05/07 05:03:41 jsing Exp $ */ +/* $OpenBSD: bs_cbb.c,v 1.17 2017/08/12 02:50:05 jsing Exp $ */ /* * Copyright (c) 2014, Google Inc. * @@ -87,6 +87,7 @@ CBB_cleanup(CBB *cbb) free(cbb->base); } cbb->base = NULL; + cbb->child = NULL; } static int -- cgit v1.2.3-55-g6feb