Index: trunk/psphot/src/choose_psf_model.c
===================================================================
--- trunk/psphot/src/choose_psf_model.c	(revision 4114)
+++ trunk/psphot/src/choose_psf_model.c	(revision 4115)
@@ -68,5 +68,11 @@
     for (int i = 0; i < test->sources->n; i++) {
 	psSource *source = test->sources->data[i];
-	source->modelPSF = test->modelPSF->data[i];
+	// drop masked sources from PSFSTAR list
+	if (test->mask->data.U8[i]) {
+	  source->type = PS_SOURCE_OTHER;
+	  // XXX is this the right type to go to?
+	} else {
+	  source->modelPSF = test->modelPSF->data[i];
+	}
     }
     return (test->psf);
