From 3f9b650b4bd7df3f4c4ce43cc4ff336915e863a7 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 15 Dec 2011 19:50:22 +0000 Subject: [PATCH] - Fixed renumber error code for POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR --- programs/random/gen_random_ctr_drbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/random/gen_random_ctr_drbg.c b/programs/random/gen_random_ctr_drbg.c index fb3a34051..ead9bb248 100644 --- a/programs/random/gen_random_ctr_drbg.c +++ b/programs/random/gen_random_ctr_drbg.c @@ -67,7 +67,7 @@ int main( int argc, char *argv[] ) #if defined(POLARSSL_FS_IO) ret = ctr_drbg_update_seed_file( &ctr_drbg, "seedfile" ); - if( ret == 1 ) + if( ret == POLARSSL_ERR_CTR_DRBG_FILE_IO_ERROR ) { printf("Failed to open seedfile. Generating one.\n"); ret = ctr_drbg_write_seed_file( &ctr_drbg, "seedfile" );