Merge pull request #1069 from devnexen/fix_bug_fix

fix curl uaf previous fix.
This commit is contained in:
Yamagi 2023-11-04 14:13:10 +01:00 committed by GitHub
commit ad9c115840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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;