--- xdata/xodtemplate.c.orig	2009-10-05 14:36:43.000000000 +0000
+++ xdata/xodtemplate.c	2009-10-05 14:44:55.000000000 +0000
@@ -14378,7 +14378,7 @@
 		        }
 
 		/* we didn't find a match */
-		if(found_match==FALSE){
+		if(found_match==FALSE && reject_item==FALSE){
 #ifdef NSCORE
 			logit(NSLOG_CONFIG_ERROR,TRUE,"Error: Could not find a service matching host name '%s' and description '%s' (config file '%s', starting on line %d)\n",host_name,temp_ptr,xodtemplate_config_file_name(_config_file),_start_line);
 #endif
@@ -14390,7 +14390,7 @@
 		regfree(&preg2);
 	my_free(service_names);
 
-	if(found_match==FALSE)
+	if(found_match==FALSE && reject_item==FALSE)
 		return ERROR;
 
 	return OK;
