git-svn: trunk@3965
Tomasz Kojm authored on 2008/07/17 01:11:29... | ... |
@@ -1147,7 +1147,7 @@ static int updatedb(const char *dbname, const char *hostname, char *ip, int *sig |
1147 | 1147 |
if((pt = cli_strtok(dnsreply, 5, ":"))) { |
1148 | 1148 |
remote_flevel = atoi(pt); |
1149 | 1149 |
free(pt); |
1150 |
- if(remote_flevel - flevel < 4) |
|
1150 |
+ if(remote_flevel && (remote_flevel - flevel < 4)) |
|
1151 | 1151 |
can_whitelist = 1; |
1152 | 1152 |
} |
1153 | 1153 |
} |