Browse Source

dns_cache: minor fix, goto instead of break

Exit from the main look when no number of entries
has already been processed in dns_cache_clean()
Miklos Tirpak 15 years ago
parent
commit
6a0b45abdb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dns_cache.c

+ 1 - 1
dns_cache.c

@@ -680,7 +680,7 @@ inline static int dns_cache_clean(unsigned int no, int expired_only)
 				deleted++;
 			}
 			n++;
-			if (n>=no) break;
+			if (n>=no) goto skip;
 		}
 	}
 	/* not fair, but faster then random() */