]> WPIA git - cassiopeia.git/blobdiff - src/crypto/simpleOpensslSigner.cpp
fix: a bug where only serial repeated after 0xF
[cassiopeia.git] / src / crypto / simpleOpensslSigner.cpp
index b6868201f87319695424bdd276ca2594885a35b8..1ea12441d67a3d3c638e82ea474b147209c730ef 100644 (file)
@@ -38,7 +38,7 @@ std::pair<std::shared_ptr<BIGNUM>, std::string> SimpleOpensslSigner::nextSerial(
             throw "Initing serial failed";
         }
     } else {
-        if( !BN_hex2bn( &bn, res.c_str() + 1 ) ) {
+        if( !BN_hex2bn( &bn, res.c_str() ) ) {
             throw "Parsing serial failed.";
         }
     }