SRV and ENUM fixes (bug #'s 350 and 351)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1606 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-10-04 21:58:16 +00:00
parent d79518ec0e
commit a5e6d130fd
4 changed files with 77 additions and 22 deletions

7
srv.c
View File

@@ -113,9 +113,10 @@ int ast_get_srv(struct ast_channel *chan, char *host, int hostlen, int *port, co
if (chan)
ret |= ast_autoservice_stop(chan);
if (ret <= 0)
if (ret <= 0) {
strcpy(host, "");
*port = -1;
return ret;
strcpy(host, "");
*port = -1;
}
return ret;
}