From: Richard Maciel <[email protected]> Related to coverity CID 10304.
There was a possible code execution path, in function context_destroy that have toKill pointer var with the NULL value. Signed-off-by: Richard Maciel <[email protected]> --- src/tcs/tcs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcs/tcs_context.c b/src/tcs/tcs_context.c index 905567b..2072bdc 100644 --- a/src/tcs/tcs_context.c +++ b/src/tcs/tcs_context.c @@ -134,7 +134,7 @@ destroy_context(TCS_CONTEXT_HANDLE handle) #ifdef TSS_BUILD_TRANSPORT /* Free existing transport session if necessary */ - if (toKill->transHandle) + if (toKill != NULL && toKill->transHandle) TCSP_FlushSpecific_Common(toKill->transHandle, TPM_RT_TRANS); #endif -- 1.8.5.3 ------------------------------------------------------------------------------ Put Bad Developers to Shame Dominate Development with Jenkins Continuous Integration Continuously Automate Build, Test & Deployment Start a new project now. Try Jenkins in the cloud. http://p.sf.net/sfu/13600_Cloudbees _______________________________________________ TrouSerS-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-tech
