Index: job.c
===================================================================
--- job.c	(revision 6414)
+++ job.c	(working copy)
@@ -376,11 +376,12 @@
 
         pclass = printer;
 
-        if (!(pclass->type & CUPS_PRINTER_REMOTE) &&
-	    pclass->state != IPP_PRINTER_STOPPED)
-          printer = cupsdFindAvailablePrinter(job->dest);
+        if (pclass->state == IPP_PRINTER_STOPPED)
+	  printer = NULL;
+        else if (pclass->type & CUPS_PRINTER_REMOTE)
+	  break;
 	else
-	  printer = NULL;
+	  printer = cupsdFindAvailablePrinter(printer->name);
       }
 
       if (!printer && !pclass)
