Browse code

dns cache: fix dns_cache_delete_single_record()

Binary comparison is needed to check the flags.

Miklos Tirpak authored on 30/06/2010 08:21:24
Showing 1 changed files
... ...
@@ -4539,7 +4539,7 @@ int dns_cache_delete_single_record(unsigned short type,
4539 4539
 	)
4540 4540
 		goto not_found;
4541 4541
 
4542
-	if (flags && DNS_FLAG_BAD_NAME) /* negative record, there is no value */
4542
+	if (flags & DNS_FLAG_BAD_NAME) /* negative record, there is no value */
4543 4543
 		goto delete;
4544 4544
 
4545 4545
 	/* check whether there is an rr with the same value */