Fix calls to ast_get_ip() not initializing the address family.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@346239 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2011-11-23 22:52:59 +00:00
parent 546e7517c5
commit 20e75b7ad2
5 changed files with 25 additions and 18 deletions

View File

@@ -1431,6 +1431,7 @@ static struct oh323_user *build_user(const char *name, struct ast_variable *v, s
} else {
struct ast_sockaddr tmp;
tmp.ss.ss_family = AF_INET;
if (ast_get_ip(&tmp, v->value)) {
ASTOBJ_UNREF(user, oh323_destroy_user);
return NULL;