diff options
| author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-01-23 16:27:48 +0000 |
|---|---|---|
| committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2002-01-23 16:27:48 +0000 |
| commit | 67cb6d2cc40aedd593a36b87fd4d3cd9cab50f62 (patch) | |
| tree | 28e3b27d21b0264509a2ac3de1b540da52fbad4c /src | |
| parent | 4e32034de98650808178f9792f9c7322a058ecde (diff) | |
| download | zabbix-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.c | 2 |
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) |
