fix curl uaf previous fix.

This commit is contained in:
David Carlier 2023-10-25 18:46:03 +01:00
parent 994a753bd0
commit a5192af173

View file

@ -516,7 +516,7 @@ static void CL_ParseFileList(dlhandle_t *dl)
*/ */
static void CL_ReVerifyHTTPQueue (void) static void CL_ReVerifyHTTPQueue (void)
{ {
dlqueue_t *q = &cls.downloadQueue.next; dlqueue_t *q = cls.downloadQueue.next;
pendingCount = 0; pendingCount = 0;
@ -1036,7 +1036,7 @@ void CL_CancelHTTPDownloads(qboolean permKill)
abortDownloads = HTTPDL_ABORT_SOFT; abortDownloads = HTTPDL_ABORT_SOFT;
} }
dlqueue_t *q = &cls.downloadQueue.next; dlqueue_t *q = cls.downloadQueue.next;
while (q) while (q)
{ {
dlqueue_t *next = q->next; dlqueue_t *next = q->next;