File nrpe-weird_output.patch of Package nagios-nrpe
Index: src/nrpe.c
===================================================================
--- src/nrpe.c.orig
+++ src/nrpe.c
@@ -1166,6 +1166,9 @@ void handle_connection(int sock){
/* disable connection alarm - a new alarm will be setup during my_system */
alarm(0);
+ // null buffer before using it - Debian Patch by <luk@luknote>
+ memset(buffer,0,sizeof(buffer));
+
/* if this is the version check command, just spew it out */
if(!strcmp(command_name,NRPE_HELLO_COMMAND)){