From 0cc565deac6206d0e27c8b539501682d1d48acfe Mon Sep 17 00:00:00 2001 From: lzeng14 Date: Fri, 25 Jan 2013 04:48:41 +0000 Subject: Add NULL pointer check. Signed-off-by: Star Zeng Reviewed-by: Eric Dong git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14084 6f19259b-4bc3-4df7-8a09-765794883524 --- SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'SecurityPkg') diff --git a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c index c70b467ff9..123ce6f8f0 100644 --- a/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c +++ b/SecurityPkg/VariableAuthenticated/RuntimeDxe/Variable.c @@ -1763,6 +1763,7 @@ UpdateVariable ( ); if (!EFI_ERROR (Status)) { if (!Variable->Volatile) { + ASSERT (CacheVariable->InDeletedTransitionPtr != NULL); CacheVariable->InDeletedTransitionPtr->State = State; } } else { @@ -2185,6 +2186,7 @@ UpdateVariable ( ); if (!EFI_ERROR (Status)) { if (!Variable->Volatile) { + ASSERT (CacheVariable->InDeletedTransitionPtr != NULL); CacheVariable->InDeletedTransitionPtr->State = State; } } else { -- cgit v1.2.3