Sfoglia il codice sorgente

dns cache: fix dns_cache_delete_single_record()

Binary comparison is needed to check the flags.
Miklos Tirpak 15 anni fa
parent
commit
a1dea0ec1d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      dns_cache.c

+ 1 - 1
dns_cache.c

@@ -4539,7 +4539,7 @@ int dns_cache_delete_single_record(unsigned short type,
 	)
 		goto not_found;
 
-	if (flags && DNS_FLAG_BAD_NAME) /* negative record, there is no value */
+	if (flags & DNS_FLAG_BAD_NAME) /* negative record, there is no value */
 		goto delete;
 
 	/* check whether there is an rr with the same value */