(closes issue #10983)
Reported by: jtodd
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98954
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
{
char *host;
char *tmp;
-
- struct hostent *hp;
- struct ast_hostent ahp;
struct sip_peer *p;
int res = AST_DEVICE_INVALID;
}
unref_peer(p);
} else {
- char *port = strchr(host, ':');
- if (port)
- *port = '\0';
- hp = ast_gethostbyname(host, &ahp);
- if (hp)
- res = AST_DEVICE_UNKNOWN;
+ res = AST_DEVICE_UNKNOWN;
}
return res;