From 1f2c12947e17a02eee65d7dd19a6746033eb46a3 Mon Sep 17 00:00:00 2001 From: Alan King Date: Thu, 5 Oct 2023 12:49:11 -0400 Subject: [PATCH] [#6672] Prevent free of RsComm member in Ticket Admin API --- server/api/src/rsTicketAdmin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/api/src/rsTicketAdmin.cpp b/server/api/src/rsTicketAdmin.cpp index 544611d70f..7223ade6ed 100644 --- a/server/api/src/rsTicketAdmin.cpp +++ b/server/api/src/rsTicketAdmin.cpp @@ -37,7 +37,7 @@ int rsTicketAdmin(rsComm_t* rsComm, ticketAdminInp_t* ticketAdminInp) } else { if (strcmp(ticketAdminInp->arg1, "session") == 0) { - ticketAdminInp->arg3 = rsComm->clientAddr; + ticketAdminInp->arg3 = strdup(rsComm->clientAddr); } status = rcTicketAdmin(rodsServerHost->conn, ticketAdminInp);