aboutsummaryrefslogtreecommitdiffstats
path: root/srv.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-04 21:58:16 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-04 21:58:16 +0000
commit83eccefddcf2a79110f399e80e9b87660974b209 (patch)
tree75d4ee6bc24a0d39bacdcb8ebd09b935dba78f9e /srv.c
parent52169f5647e2f8285579db7d720756bea3075e3e (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-xsrv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/srv.c b/srv.c
index 25011ad52..9a4b7a736 100755
--- a/srv.c
+++ b/srv.c
@@ -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;
}