Browse code

dns_cache: reply the rpc command only once

Miklos Tirpak authored on 16/06/2010 14:52:04
Showing 1 changed files
... ...
@@ -4367,7 +4367,7 @@ static void dns_cache_delete_record(rpc_t* rpc, void* ctx, unsigned short type)
4367 4367
 
4368 4368
 	if (permanent)
4369 4369
 		rpc->fault(ctx, 400, "Permanent entries cannot be deleted");
4370
-	if (!found)
4370
+	else if (!found)
4371 4371
 		rpc->fault(ctx, 400, "Not found");
4372 4372
 }
4373 4373