Skip to content

Commit beb3df4

Browse files
author
Andras Fekete
committed
Addressing PR comments
1 parent 1bdac65 commit beb3df4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/wp_rsa_sig.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,12 +417,13 @@ static int wp_rsa_signverify_init(wp_RsaSigCtx* ctx, wp_Rsa* rsa,
417417
if ((ctx == NULL) || (rsa == NULL)) {
418418
ok = 0;
419419
}
420-
if ((ok) && (ctx->rsa != rsa)) {
420+
if (ok && (ctx->rsa != rsa)) {
421421
wp_rsa_free(ctx->rsa);
422422
ctx->rsa = NULL;
423423
if (!wp_rsa_up_ref(rsa)) {
424424
ok = 0;
425-
} else {
425+
}
426+
else {
426427
ctx->rsa = rsa;
427428
}
428429
}

0 commit comments

Comments
 (0)