Module: sip-router Branch: master Commit: 792faa3608c9011b2620d8e4d82b664484751d41 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=792faa36...
Author: Miklos Tirpak miklos@iptel.org Committer: Miklos Tirpak miklos@iptel.org Date: Wed Jun 16 16:52:04 2010 +0200
dns_cache: reply the rpc command only once
---
dns_cache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dns_cache.c b/dns_cache.c index c7e4b32..3c98779 100644 --- a/dns_cache.c +++ b/dns_cache.c @@ -4367,7 +4367,7 @@ static void dns_cache_delete_record(rpc_t* rpc, void* ctx, unsigned short type)
if (permanent) rpc->fault(ctx, 400, "Permanent entries cannot be deleted"); - if (!found) + else if (!found) rpc->fault(ctx, 400, "Not found"); }