From 310c25e5645156135d2430eaa26aad43d2b3136f Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Sun, 4 Dec 2011 17:06:56 +0000 Subject: [PATCH] - Fixed minor bug by zeroizing result memory --- programs/pkey/rsa_decrypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/programs/pkey/rsa_decrypt.c b/programs/pkey/rsa_decrypt.c index 9e594f82f..0b168f442 100644 --- a/programs/pkey/rsa_decrypt.c +++ b/programs/pkey/rsa_decrypt.c @@ -56,7 +56,9 @@ int main( int argc, char *argv[] ) unsigned char buf[512]; ((void) argv); + memset(result, 0, sizeof( result ) ); ret = 1; + if( argc != 1 ) { printf( "usage: rsa_decrypt\n" );