projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Validate the category in OSSL_trace_end()
[openssl.git]
/
crypto
/
trace.c
diff --git
a/crypto/trace.c
b/crypto/trace.c
index f012b617abc68f53e2e052d62307f9420ac6c4e4..cc0b4776986efebe2f6809ff0fe83c6832103213 100644
(file)
--- a/
crypto/trace.c
+++ b/
crypto/trace.c
@@
-496,6
+496,8
@@
void OSSL_trace_end(int category, BIO * channel)
char *suffix = NULL;
category = ossl_trace_get_category(category);
+ if (category < 0)
+ return;
suffix = trace_channels[category].suffix;
if (channel != NULL
&& ossl_assert(channel == current_channel)) {