summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-01-23 16:27:48 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2002-01-23 16:27:48 +0000
commit67cb6d2cc40aedd593a36b87fd4d3cd9cab50f62 (patch)
tree28e3b27d21b0264509a2ac3de1b540da52fbad4c /src
parent4e32034de98650808178f9792f9c7322a058ecde (diff)
downloadzabbix-67cb6d2cc40aedd593a36b87fd4d3cd9cab50f62.tar.gz
zabbix-67cb6d2cc40aedd593a36b87fd4d3cd9cab50f62.tar.xz
zabbix-67cb6d2cc40aedd593a36b87fd4d3cd9cab50f62.zip
Fix for overflow in configuration IP address.
git-svn-id: svn://svn.zabbix.com/trunk@300 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src')
-rw-r--r--src/zabbix_agent/zabbix_agentd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zabbix_agent/zabbix_agentd.c b/src/zabbix_agent/zabbix_agentd.c
index b2ac5e9c..a9eadfae 100644
--- a/src/zabbix_agent/zabbix_agentd.c
+++ b/src/zabbix_agent/zabbix_agentd.c
@@ -160,7 +160,7 @@ void process_config_file(void)
if(strcmp(parameter,"Server")==0)
{
- config_host_allowed=(char *)malloc(strlen(value));
+ config_host_allowed=(char *)malloc(strlen(value)+1);
strcpy(config_host_allowed,value);
}
else if(strcmp(parameter,"StartAgents")==0)