Skip to content

Commit

Permalink
coolkey: Properly initialize serial length (partially resolves OpenSC…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Jan 23, 2017
1 parent 8378d18 commit 70f5fee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libopensc/card-coolkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,6 +1360,7 @@ static int coolkey_get_serial_nr_from_CUID(sc_card_t* card, sc_serial_number_t*

SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_NORMAL);
memcpy(serial->value, &priv->cuid, sizeof(priv->cuid));
serial->len = sizeof(priv->cuid);
SC_FUNC_RETURN(card->ctx, SC_LOG_DEBUG_NORMAL, SC_SUCCESS);
}

Expand Down

0 comments on commit 70f5fee

Please sign in to comment.