Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions daemon/cups-browsed.c
Original file line number Diff line number Diff line change
Expand Up @@ -11662,6 +11662,7 @@ read_configuration (const char *filename)
}
else if (!strcasecmp(line, "BrowseFilter") && value)
{
filter = NULL;
ptr = value;
// Skip white space
while (*ptr && isspace(*ptr))
Expand Down Expand Up @@ -11770,7 +11771,8 @@ read_configuration (const char *filename)
!strcasecmp(line, "BrowseTimeout")) && value)
{
int t = atoi(value);
if (t >= 0)
// A BrowseInterval of 0 would make browse_poll() run in a busy loop
if (t > 0 || (t == 0 && !strcasecmp(line, "BrowseTimeout")))
{
if (!strcasecmp(line, "BrowseInterval"))
BrowseInterval = t;
Expand Down Expand Up @@ -12000,6 +12002,7 @@ read_configuration (const char *filename)
}
else if (!strcasecmp(line, "Cluster") && value)
{
cluster = NULL;
ptr = value;
ptr2 = NULL;
// Skip white space
Expand Down Expand Up @@ -12048,7 +12051,8 @@ read_configuration (const char *filename)
{
// Only local queue name given, so assume this name as the only
// member name (only remote queues with this name match)
cupsArrayAdd(cluster->members, remove_bad_chars(ptr2, 2));
cupsArrayAdd(cluster->members,
remove_bad_chars(cluster->local_queue_name, 2));
}
else
{
Expand Down
Loading