]> WPIA git - cassiopeia.git/commitdiff
fix: a bug where only serial repeated after 0xF
authorFelix Dörre <felix@dogcraft.de>
Sat, 10 Jan 2015 00:24:04 +0000 (01:24 +0100)
committerBenny Baumann <BenBE@geshi.org>
Sat, 24 Jan 2015 17:33:29 +0000 (18:33 +0100)
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.";
         }
     }