diff -r e724ec518437 -r 9b1f1fe06753 xmlsecurityengine/xmlseccrypto/src/xmlsecc_cryptowrapper.cpp --- a/xmlsecurityengine/xmlseccrypto/src/xmlsecc_cryptowrapper.cpp Tue Jan 26 13:19:26 2010 +0200 +++ b/xmlsecurityengine/xmlseccrypto/src/xmlsecc_cryptowrapper.cpp Fri Apr 16 16:57:34 2010 +0300 @@ -149,7 +149,7 @@ if (ivlen > c->blocksize) ivlen = c->blocksize; - TInt len = ivlen; + TRAP( error, c->iv = HBufC8::NewL(ivlen) ); if ( error ) //!= KErrNone {