commit | ec99373df6eeee8c8d1d868518e21dfaa73992c8 | [log] [tgz] |
---|---|---|
author | Alfred Klomp <git@alfredklomp.com> | Mon Jul 14 22:07:34 2014 +0200 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Thu Oct 23 15:34:02 2014 +0200 |
tree | 076df7cce02a97fd7ad711abb104d1338b5ad886 | |
parent | 9711920304f0bab506fc52ccc35b8059cce8d042 [diff] [blame] |
pkcs5.c: fix dead store: return proper exit status Found with Clang's `scan-build` tool. The error value assigned to `ret` is not returned, meaning that the selftest always succeeds. Ensure the error value is propagated back to the caller.
diff --git a/library/pkcs5.c b/library/pkcs5.c index 8e55415..9826c5d 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c
@@ -407,7 +407,7 @@ printf( "\n" ); - return( 0 ); + return( ret ); } #endif /* POLARSSL_SELF_TEST */