commit | 1b4eda3af96a7fb53a327fb3325670a14ff02213 | [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 Aug 14 11:34:34 2014 +0200 |
tree | f81c05c9bb5dd25e6fbc35e04e82bc0c0cee1aea | |
parent | 8d77eeeaf65fe360bf1a2f159139ff4d1577ba37 [diff] |
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 e769783..e2c4e48 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c
@@ -408,7 +408,7 @@ exit: md_free( &sha1_ctx ); - return( 0 ); + return( ret ); } #endif /* POLARSSL_SHA1_C */