From: Automerge script Date: Mon, 30 Oct 2006 17:05:38 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.14-netsec~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a00839358a8ffb6881b5119779a2fb39c810d31;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@46456 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/rtp.c b/rtp.c index 376bd93ce5..d7730830cb 100644 --- a/rtp.c +++ b/rtp.c @@ -966,8 +966,10 @@ struct ast_rtp *ast_rtp_new_with_bindaddr(struct sched_context *sched, struct io rtp->us.sin_port = htons(x); rtp->us.sin_addr = addr; /* If there's rtcp, initialize it as well. */ - if (rtp->rtcp) + if (rtp->rtcp) { + rtp->rtcp->us.sin_addr = addr; rtp->rtcp->us.sin_port = htons(x + 1); + } /* Try to bind it/them. */ if (!(first = bind(rtp->s, (struct sockaddr *)&rtp->us, sizeof(rtp->us))) && (!rtp->rtcp || !bind(rtp->rtcp->s, (struct sockaddr *)&rtp->rtcp->us, sizeof(rtp->rtcp->us))))