Fix small formatting issue in SRP debug output
authorsfan5 <sfan5@live.de>
Tue, 29 Mar 2016 17:55:39 +0000 (19:55 +0200)
committersfan5 <sfan5@live.de>
Tue, 29 Mar 2016 17:59:14 +0000 (19:59 +0200)
Writing an u8 to verbosestream writes a char, not it's numeric value.

src/network/serverpackethandler.cpp

index ac00b1d80ad7567192e668a7d3a3561de875969c..1bcb78a8a109eeb89fefd1804392527d22432708 100644 (file)
@@ -1808,7 +1808,7 @@ void Server::handleCommand_FirstSrp(NetworkPacket* pkt)
        *pkt >> salt >> verification_key >> is_empty;
 
        verbosestream << "Server: Got TOSERVER_FIRST_SRP from " << addr_s
-               << ", with is_empty= " << is_empty << std::endl;
+               << ", with is_empty=" << (is_empty == 1) << std::endl;
 
        // Either this packet is sent because the user is new or to change the password
        if (cstate == CS_HelloSent) {