commit | 57e52f2a633fe7849ac4eebd9f5cbd6f12fba30d | [log] [tgz] |
---|---|---|
author | Adam Langley <agl@google.com> | Mon Oct 06 19:30:44 2014 -0700 |
committer | Adam Langley <agl@google.com> | Mon Oct 06 19:30:44 2014 -0700 |
tree | ec0b75ebca4446e6c8cc7991b82b86f635717cd4 | |
parent | 5f1374e203b79f38349fe0568a31bd95e079f878 [diff] |
Fix invariant broken in 5f1374e2. If to_free is not a valid pointer then it should be NULL. Change-Id: I6addb2b8e7aa61d3ba47baaf8d0606d10ff2545d
diff --git a/crypto/err/err.c b/crypto/err/err.c index 5a79fb8..5a371a5 100644 --- a/crypto/err/err.c +++ b/crypto/err/err.c
@@ -279,6 +279,7 @@ } if (state->to_free) { OPENSSL_free(state->to_free); + state->to_free = NULL; } state->top = state->bottom = 0;