From f3f12761baef13a62a8cf024ed0b17ab37bab4eb Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Wed, 14 Nov 2007 01:15:12 +0000 Subject: [PATCH] Return the proper value when the srv_callback function executes properly. (closes issue #11240) Reported by: jtodd git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89260 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/srv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/srv.c b/main/srv.c index d39b13157d..97ad43cff4 100644 --- a/main/srv.c +++ b/main/srv.c @@ -141,7 +141,7 @@ static int srv_callback(void *context, unsigned char *answer, int len, unsigned if (entry) AST_LIST_INSERT_TAIL(&c->entries, entry, list); - return 0; + return 1; } /* Do the bizarre SRV record weight-handling algorithm