Commit 1b4eda3a authored by Alfred Klomp's avatar Alfred Klomp Committed by Manuel Pégourié-Gonnard
Browse files

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.
parent 8d77eeea
......@@ -408,7 +408,7 @@ int pkcs5_self_test( int verbose )
exit:
md_free( &sha1_ctx );
return( 0 );
return( ret );
}
#endif /* POLARSSL_SHA1_C */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment