summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/netsock2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/netsock2.c b/main/netsock2.c
index 4ac1d0ffb..1922ac388 100644
--- a/main/netsock2.c
+++ b/main/netsock2.c
@@ -85,7 +85,7 @@ char *ast_sockaddr_stringify_fmt(const struct ast_sockaddr *sa, int format)
sa_tmp = sa;
}
- if ((e = getnameinfo((struct sockaddr *)&sa_tmp->ss, sa->len,
+ if ((e = getnameinfo((struct sockaddr *)&sa_tmp->ss, sa_tmp->len,
format & AST_SOCKADDR_STR_ADDR ? host : NULL,
format & AST_SOCKADDR_STR_ADDR ? sizeof(host) : 0,
format & AST_SOCKADDR_STR_PORT ? port : 0,