There isn't much point in saving off and restoring a value that we never use again.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@356966 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright 2012-02-27 16:12:51 +00:00
parent a9f4d13b02
commit 9ed6de9fd2
1 changed files with 0 additions and 2 deletions

View File

@ -12332,11 +12332,9 @@ static int peer_set_srcaddr(struct iax2_peer *peer, const char *srcaddr)
sockfd = ast_netsock_sockfd(sock);
nonlocal = 0;
} else {
unsigned int orig_saddr = sin.sin_addr.s_addr;
/* INADDR_ANY matches anyway! */
sin.sin_addr.s_addr = INADDR_ANY;
if (ast_netsock_find(netsock, &sin)) {
sin.sin_addr.s_addr = orig_saddr;
sock = ast_netsock_bind(outsock, io, srcaddr, port, qos.tos, qos.cos, socket_read, NULL);
if (sock) {
sockfd = ast_netsock_sockfd(sock);