Browse code

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

- closes FS#260

Daniel-Constantin Mierla authored on 01/09/2014 21:45:13
Showing 1 changed files
... ...
@@ -3969,6 +3969,7 @@ void dns_cache_delete_all(rpc_t* rpc, void* ctx)
3969 3969
 		return;
3970 3970
 	}
3971 3971
 	dns_cache_flush(0);
3972
+	rpc->rpl_printf(ctx, "OK");
3972 3973
 }
3973 3974
 
3974 3975
 /* deletes all the entries from the cache,
... ...
@@ -3980,6 +3981,7 @@ void dns_cache_delete_all_force(rpc_t* rpc, void* ctx)
3980 3980
 		return;
3981 3981
 	}
3982 3982
 	dns_cache_flush(1);
3983
+	rpc->rpl_printf(ctx, "OK");
3983 3984
 }
3984 3985
 
3985 3986
 /* clones an entry and extends its memory area to hold a new rr.