Fix allocating the size for the ticket.

This commit is contained in:
Detanup01 2024-04-27 15:36:17 +02:00 committed by otavepto
parent 29d973ad4b
commit 5d3a749fe1

View File

@ -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