From 0e4f9115dcf83ac3bb60451ba92927274b7434b8 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 17 Apr 2014 12:39:05 +0200 Subject: [PATCH] Fix iteration counter --- library/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/debug.c b/library/debug.c index 51b93075f..87818695d 100644 --- a/library/debug.c +++ b/library/debug.c @@ -243,7 +243,7 @@ static void debug_print_pk( const ssl_context *ssl, int level, return; } - for( i = 0; i < sizeof( items ); i++ ) + for( i = 0; i < POLARSSL_PK_DEBUG_MAX_ITEMS; i++ ) { if( items[i].type == POLARSSL_PK_DEBUG_NONE ) return;