mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-07 22:05:25 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user