diff -ru nagios-3.2.3/base/checks.c nagios-3.2.3-mod/base/checks.c
--- nagios-3.2.3/base/checks.c	2010-09-21 11:05:31.000000000 -0400
+++ nagios-3.2.3-mod/base/checks.c	2011-04-12 16:24:43.000000000 -0400
@@ -2605,6 +2605,7 @@
 
 	/* execute the host check */
 	host_result=execute_sync_host_check_3x(hst);
+	*check_result_code=host_result;
 
 	/* process the host check result */
 	process_host_check_result_3x(hst,host_result,old_plugin_output,check_options,FALSE,use_cached_result,check_timestamp_horizon);
