Browse Source

dns_cache: reply the rpc command only once

Miklos Tirpak 15 years ago
parent
commit
792faa3608
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dns_cache.c

+ 1 - 1
dns_cache.c

@@ -4367,7 +4367,7 @@ static void dns_cache_delete_record(rpc_t* rpc, void* ctx, unsigned short type)
 
 
 	if (permanent)
 	if (permanent)
 		rpc->fault(ctx, 400, "Permanent entries cannot be deleted");
 		rpc->fault(ctx, 400, "Permanent entries cannot be deleted");
-	if (!found)
+	else if (!found)
 		rpc->fault(ctx, 400, "Not found");
 		rpc->fault(ctx, 400, "Not found");
 }
 }