Commit 6b0a56ad authored by Sietse Ringers's avatar Sietse Ringers
Browse files

Fix bug in NewCredentialInfo()

parent b28be0df
......@@ -31,7 +31,7 @@ func NewCredentialInfo(ints []*big.Int, conf *Configuration) *CredentialInfo {
attrs := make([]TranslatedString, len(credtype.Attributes))
for i := range credtype.Attributes {
bi := ints[i+1]
bi := new(big.Int).Set(ints[i+1])
if meta.Version() >= 3 { // has optional attributes
if bi.Bit(0) == 0 { // attribute does not exist
continue
......
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