Changeset 773
- Timestamp:
- Oct 16, 2006 12:53:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c
r721 r773 411 411 * have been received. 412 412 */ 413 if ((udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0) { 413 if (bytes_read>0 && 414 (udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0) 415 { 414 416 if ((udp->rem_rtp_addr.sin_addr.s_addr != 415 417 udp->rtp_src_addr.sin_addr.s_addr) || … … 465 467 &udp->rtp_addrlen); 466 468 467 } while (status == PJ_SUCCESS);469 } while (status != PJ_EPENDING); 468 470 } 469 471 … … 495 497 * different. 496 498 */ 497 if ((udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0 && 499 if (bytes_read>0 && 500 (udp->options & PJMEDIA_UDP_NO_SRC_ADDR_CHECKING)==0 && 498 501 ((udp->rem_rtcp_addr.sin_addr.s_addr != 499 502 udp->rtcp_src_addr.sin_addr.s_addr) || … … 516 519 &udp->rtcp_addr_len); 517 520 518 } while (status == PJ_SUCCESS);521 } while (status != PJ_EPENDING); 519 522 } 520 523
Note: See TracChangeset
for help on using the changeset viewer.