Pārlūkot izejas kodu

core: return OK as string for a successful dns.delete rpc command

- closes FS#260
Daniel-Constantin Mierla 11 gadi atpakaļ
vecāks
revīzija
b77613398f
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      dns_cache.c

+ 2 - 0
dns_cache.c

@@ -3969,6 +3969,7 @@ void dns_cache_delete_all(rpc_t* rpc, void* ctx)
 		return;
 	}
 	dns_cache_flush(0);
+	rpc->rpl_printf(ctx, "OK");
 }
 
 /* deletes all the entries from the cache,
@@ -3980,6 +3981,7 @@ void dns_cache_delete_all_force(rpc_t* rpc, void* ctx)
 		return;
 	}
 	dns_cache_flush(1);
+	rpc->rpl_printf(ctx, "OK");
 }
 
 /* clones an entry and extends its memory area to hold a new rr.