]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix backported changes for race condition.
authorMichael R Sweet <msweet@msweet.org>
Thu, 4 Apr 2024 16:12:05 +0000 (12:12 -0400)
committerMichael R Sweet <msweet@msweet.org>
Thu, 4 Apr 2024 16:12:05 +0000 (12:12 -0400)
scheduler/ipp.c

index 79821edc0f6104d3bba48b8437efaa32477b9123..0f4b376153fbdd08f5aed6522c9d689d4bd8f945 100644 (file)
@@ -5601,7 +5601,7 @@ create_local_printer(
     goto add_printer_attributes;
   }
 
-  for (printer = (cupsd_printer_t *)cupsArrayGetFirst(Printers); printer; printer = (cupsd_printer_t *)cupsArrayGetNext(Printers))
+  for (printer = (cupsd_printer_t *)cupsArrayFirst(Printers); printer; printer = (cupsd_printer_t *)cupsArrayNext(Printers))
   {
     if (printer->device_uri && !strcmp(ptr, printer->device_uri))
     {