crypto: fix fingerprint

Latest logging changes introduced a problem with fingerprint generation.
The last byte wasn't added.
This commit is contained in:
Bernhard Miklautz 2014-08-12 15:40:53 +02:00
parent 2f6575a7e6
commit e5e1a75c35

View File

@ -355,7 +355,7 @@ char* crypto_cert_fingerprint(X509* xcert)
sprintf(p, "%02x:", fp[i]);
p = &fp_buffer[(i + 1) * 3];
}
DEBUG_MSG(p, "%02x", fp[i]);
sprintf(p, "%02x", fp[i]);
return fp_buffer;
}