From 4b512cbcfa079bb0804dad3df0d91cc6bd264b5d Mon Sep 17 00:00:00 2001 From: "rrelyea%redhat.com" Date: Wed, 31 Mar 2010 16:45:22 +0000 Subject: [PATCH] Bug #550203: Coverity: uninitialized reference. State SECItem needs to be initialized with the input parameters. Fixed by timeless. r=rrelyea git-svn-id: svn://10.0.0.236/trunk@260118 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/ckfw/wrap.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mozilla/security/nss/lib/ckfw/wrap.c b/mozilla/security/nss/lib/ckfw/wrap.c index 242adc74f60..8f4ecba0b54 100644 --- a/mozilla/security/nss/lib/ckfw/wrap.c +++ b/mozilla/security/nss/lib/ckfw/wrap.c @@ -35,7 +35,7 @@ * ***** END LICENSE BLOCK ***** */ #ifdef DEBUG -static const char CVS_ID[] = "@(#) $RCSfile: wrap.c,v $ $Revision: 1.18 $ $Date: 2009-02-09 07:55:53 $"; +static const char CVS_ID[] = "@(#) $RCSfile: wrap.c,v $ $Revision: 1.19 $ $Date: 2010-03-31 16:45:22 $"; #endif /* DEBUG */ /* @@ -1777,6 +1777,9 @@ NSSCKFWC_SetOperationState } } + state.data = pOperationState; + state.size = ulOperationStateLen; + error = nssCKFWSession_SetOperationState(fwSession, &state, eKey, aKey); if( CKR_OK != error ) { goto loser;