diff -r d2801e68661f -r e65204f75c47 xmlsecurityengine/xmlseccrypto/src/xmlsecc_cryptowrapper.cpp --- a/xmlsecurityengine/xmlseccrypto/src/xmlsecc_cryptowrapper.cpp Wed Feb 03 11:49:58 2010 +0000 +++ b/xmlsecurityengine/xmlseccrypto/src/xmlsecc_cryptowrapper.cpp Sat Feb 20 00:38:59 2010 +0200 @@ -149,7 +149,7 @@ if (ivlen > c->blocksize) ivlen = c->blocksize; - TInt len = ivlen; + TRAP( error, c->iv = HBufC8::NewL(ivlen) ); if ( error ) //!= KErrNone {