commit | 0e4f9115dcf83ac3bb60451ba92927274b7434b8 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Thu Apr 17 12:39:05 2014 +0200 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Thu Apr 17 12:39:05 2014 +0200 |
tree | 3795d2daaed1ce7a3606befcf0cc149d3c19e868 | |
parent | 784b04ff9afd5faeaeb15c3fa159ff98adf55182 [diff] [blame] |
Fix iteration counter
diff --git a/library/debug.c b/library/debug.c index 51b9307..8781869 100644 --- a/library/debug.c +++ b/library/debug.c
@@ -243,7 +243,7 @@ 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;