Skip to content

Commit ac658e5

Browse files
committed
Fix subscript[0] in torcontrol
1 parent b6856eb commit ac658e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/torcontrol.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ void TorController::protocolinfo_cb(TorControlConnection& _conn, const TorContro
662662
// _conn.Command("AUTHENTICATE " + HexStr(status_cookie.second), boost::bind(&TorController::auth_cb, this, _1, _2));
663663
cookie = std::vector<uint8_t>(status_cookie.second.begin(), status_cookie.second.end());
664664
clientNonce = std::vector<uint8_t>(TOR_NONCE_SIZE, 0);
665-
GetRandBytes(&clientNonce[0], TOR_NONCE_SIZE);
665+
GetRandBytes(clientNonce.data(), TOR_NONCE_SIZE);
666666
_conn.Command("AUTHCHALLENGE SAFECOOKIE " + HexStr(clientNonce), boost::bind(&TorController::authchallenge_cb, this, _1, _2));
667667
} else {
668668
if (status_cookie.first) {

0 commit comments

Comments
 (0)