patch-channels_chan_iax2_c 802 B

1234567891011121314151617181920
  1. --- asterisk-1.4.27.1.orig/channels/chan_iax2.c 2009-11-10 18:15:57.000000000 +0100
  2. +++ asterisk-1.4.27.1/channels/chan_iax2.c 2009-12-03 20:57:05.000000000 +0100
  3. @@ -7076,7 +7076,7 @@ static int try_transfer(struct chan_iax2
  4. memset(&ied, 0, sizeof(ied));
  5. if (ies->apparent_addr)
  6. - bcopy(ies->apparent_addr, &new, sizeof(new));
  7. + memcpy(&new, ies->apparent_addr, sizeof(new));
  8. if (ies->callno)
  9. newcall = ies->callno;
  10. if (!newcall || !new.sin_addr.s_addr || !new.sin_port) {
  11. @@ -7235,7 +7235,7 @@ static int iax2_ack_registry(struct iax_
  12. memset(&us, 0, sizeof(us));
  13. if (ies->apparent_addr)
  14. - bcopy(ies->apparent_addr, &us, sizeof(us));
  15. + memcpy(&us, ies->apparent_addr, sizeof(us));
  16. if (ies->username)
  17. ast_copy_string(peer, ies->username, sizeof(peer));
  18. if (ies->refresh)