diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-04 21:58:16 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-10-04 21:58:16 +0000 |
commit | 83eccefddcf2a79110f399e80e9b87660974b209 (patch) | |
tree | 75d4ee6bc24a0d39bacdcb8ebd09b935dba78f9e /srv.c | |
parent | 52169f5647e2f8285579db7d720756bea3075e3e (diff) |
SRV and ENUM fixes (bug #'s 350 and 351)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1606 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'srv.c')
-rwxr-xr-x | srv.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |