From 5d3a749fe14b77399f3befe2a505a433cfa4ea57 Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Sat, 27 Apr 2024 15:36:17 +0200 Subject: [PATCH] Fix allocating the size for the ticket. --- dll/auth.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dll/auth.cpp b/dll/auth.cpp index 25430b00..e0d7bb22 100644 --- a/dll/auth.cpp +++ b/dll/auth.cpp @@ -127,6 +127,7 @@ Auth_Data Auth_Manager::getTicketData( void *pTicket, int cbMaxTicket, uint32 *p } std::vector ser = ticket_data.Serialize(); *pcbTicket = ser.size(); + memset(pTicket, 0, ser.size())); memcpy(pTicket, ser.data(), ser.size()); } else