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.
This commit is contained in:
parent
8d77eeeaf6
commit
1b4eda3af9
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ int pkcs5_self_test( int verbose )
|
||||||
exit:
|
exit:
|
||||||
md_free( &sha1_ctx );
|
md_free( &sha1_ctx );
|
||||||
|
|
||||||
return( 0 );
|
return( ret );
|
||||||
}
|
}
|
||||||
#endif /* POLARSSL_SHA1_C */
|
#endif /* POLARSSL_SHA1_C */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue