diff --git a/CHANGES.md b/CHANGES.md index 5537bcd7f..cf528c837 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -11,6 +11,7 @@ libcups v3.0rc4 (YYYY-MM-DD) `--client-name` options. - Updated `cupsOAuthGetMetadata` to support Microsoft Azure/Entra OAuth servers. +- Fixed a duplicate printer reporting bug in `cupsGetDests`. libcups v3.0rc3 (2024-10-22) diff --git a/cups/dest.c b/cups/dest.c index 1d4b02553..867138a26 100644 --- a/cups/dest.c +++ b/cups/dest.c @@ -3050,9 +3050,9 @@ cups_get_cb(_cups_getdata_t *data, // I - Data from cupsGetDests // Remove destination from array... data->num_dests = cupsRemoveDest(dest->name, dest->instance, data->num_dests, &data->dests); } - else + else if (!cupsGetDest(dest->name, dest->instance, data->num_dests, data->dests)) { - // Add destination to array... + // Add destination to array if not already present... data->num_dests = cupsCopyDest(dest, data->num_dests, &data->dests); }