summaryrefslogtreecommitdiff
path: root/main/acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/acl.c')
-rw-r--r--main/acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/acl.c b/main/acl.c
index 082048a16..663c0b225 100644
--- a/main/acl.c
+++ b/main/acl.c
@@ -529,8 +529,8 @@ int ast_ouraddrfor(const struct ast_sockaddr *them, struct ast_sockaddr *us)
}
close(s);
ast_debug(3, "For destination '%s', our source address is '%s'.\n",
- ast_sockaddr_stringify_addr(them),
- ast_sockaddr_stringify_addr(us));
+ ast_strdupa(ast_sockaddr_stringify_addr(them)),
+ ast_strdupa(ast_sockaddr_stringify_addr(us)));
ast_sockaddr_set_port(us, port);