[icinga-checkins] icinga.org: icinga-nsca/mfriedrich/master: fix ipv6 patch broke server_address #2068

git at icinga.org git at icinga.org
Sat Nov 12 14:05:17 CET 2011


Module: icinga-nsca
Branch: mfriedrich/master
Commit: 2fa0404bb8eca935fd13c9ddbf5f6d87b80a7249
URL:    https://git.icinga.org/?p=icinga-nsca.git;a=commit;h=2fa0404bb8eca935fd13c9ddbf5f6d87b80a7249

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Sat Nov 12 14:04:35 2011 +0100

fix ipv6 patch broke server_address #2068

refs #2068

---

 THANKS     |    1 +
 src/nsca.c |    3 +--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/THANKS b/THANKS
index d7032fa..5e6893f 100644
--- a/THANKS
+++ b/THANKS
@@ -12,6 +12,7 @@ If we missed your name, let us know.
 * Ralf Ertzinger
 * Mark Ferlatte
 * Sean Finney
+* Stuart Henderson
 * David Luyer
 * Jay McCarthy
 * Ryan Ordway
diff --git a/src/nsca.c b/src/nsca.c
index 755d05d..a102245 100644
--- a/src/nsca.c
+++ b/src/nsca.c
@@ -381,8 +381,7 @@ static int read_config_file(char *filename){
 			server_port=strdup(varvalue);
 
 		else if(!strcmp(varname,"server_address")){
-                        strncpy(server_address,varvalue,sizeof(server_address) - 1);
-                        server_address[sizeof(server_address)-1]='\0';
+			server_address=strdup(varvalue);
                         }
 		else if(strstr(input_buffer,"command_file")){
                         if(strlen(varvalue)>sizeof(command_file)-1){





More information about the icinga-checkins mailing list