Add brackets in card-piv.c

This commit is contained in:
Doug Engert 2015-02-16 10:43:19 -06:00
parent e37690aed5
commit d7475c8180
1 changed files with 4 additions and 2 deletions

View File

@ -1556,9 +1556,10 @@ static int piv_general_mutual_authenticate(sc_card_t *card,
}
r = sc_lock(card);
if (r != SC_SUCCESS)
if (r != SC_SUCCESS) {
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE, "sc_lock failed\n");
goto err; /* cleanup */
}
locked = 1;
p = sbuf;
@ -1827,9 +1828,10 @@ static int piv_general_external_authenticate(sc_card_t *card,
}
r = sc_lock(card);
if (r != SC_SUCCESS)
if (r != SC_SUCCESS) {
sc_debug(card->ctx, SC_LOG_DEBUG_VERBOSE, "sc_lock failed\n");
goto err; /* cleanup */
}
locked = 1;
p = sbuf;