mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
Fix allocating the size for the ticket.
This commit is contained in:
parent
29d973ad4b
commit
5d3a749fe1
@ -127,6 +127,7 @@ Auth_Data Auth_Manager::getTicketData( void *pTicket, int cbMaxTicket, uint32 *p
|
|||||||
}
|
}
|
||||||
std::vector<uint8_t> ser = ticket_data.Serialize();
|
std::vector<uint8_t> ser = ticket_data.Serialize();
|
||||||
*pcbTicket = ser.size();
|
*pcbTicket = ser.size();
|
||||||
|
memset(pTicket, 0, ser.size()));
|
||||||
memcpy(pTicket, ser.data(), ser.size());
|
memcpy(pTicket, ser.data(), ser.size());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user