]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/dest.c
cupsEnumDests didn't always call the callback function (STR #4380)
[thirdparty/cups.git] / cups / dest.c
index f9853c8cd45c94a809332315655a265afb3e8457..c19caa741f4601a334a6a13b5e2d3fb916493d15 100644 (file)
@@ -885,11 +885,11 @@ cupsEnumDests(
   * Get Bonjour-shared printers...
   */
 
-  data.type    = type;
-  data.mask    = mask;
-  data.devices = cupsArrayNew3((cups_array_func_t)cups_dnssd_compare_devices,
-                               NULL, NULL, 0, NULL,
-                               (cups_afree_func_t)cups_dnssd_free_device);
+  data.type      = type;
+  data.mask      = mask;
+  data.cb        = cb;
+  data.user_data = user_data;
+  data.devices   = cupsArrayNew3((cups_array_func_t)cups_dnssd_compare_devices, NULL, NULL, 0, NULL, (cups_afree_func_t)cups_dnssd_free_device);
 
 #  ifdef HAVE_DNSSD
   if (DNSServiceCreateConnection(&data.main_ref) != kDNSServiceErr_NoError)