Skip to content

Commit 0c3cdb0

Browse files
Preserve GetHandshakeStatus failure ret
Co-authored-by: simonrozsival <374616+simonrozsival@users.noreply.github.com>
1 parent ae407ce commit 0c3cdb0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/native/libs/System.Security.Cryptography.Native.Android/pal_sslstream.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ ARGS_NON_NULL_ALL static int GetHandshakeStatus(JNIEnv* env, SSLStream* sslStrea
4747
if (loc[status] == NULL)
4848
goto cleanup;
4949

50-
ret = GetEnumAsInt(env, loc[status]);
50+
int handshakeStatus = GetEnumAsInt(env, loc[status]);
5151
ON_EXCEPTION_PRINT_AND_GOTO(cleanup);
52+
ret = handshakeStatus;
5253

5354
cleanup:
5455
RELEASE_LOCALS(loc, env);

0 commit comments

Comments
 (0)