patch-src_relay6_socket_c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- dhcpv6-1.2.0.orig/src/relay6_socket.c 2009-04-03 00:53:38.000000000 +0200
  3. +++ dhcpv6-1.2.0/src/relay6_socket.c 2009-05-28 23:09:11.155499136 +0200
  4. @@ -399,7 +399,7 @@ int send_message() {
  5. if (mesg->sent == 1)
  6. return 0;
  7. - bzero((char *) &sin6, sizeof(struct sockaddr_in6));
  8. + memset((char *) &sin6, 0, sizeof(struct sockaddr_in6));
  9. sin6.sin6_family = AF_INET6;
  10. sin6.sin6_flowinfo = 0;
  11. sin6.sin6_scope_id = 0;
  12. @@ -494,7 +494,7 @@ int send_message() {
  13. if (mesg->msg_type == DH6_RELAY_FORW) {
  14. for (ipv6uni = IPv6_uniaddr_list.next; ipv6uni != &IPv6_uniaddr_list;
  15. ipv6uni = ipv6uni->next) {
  16. - bzero((char *) &sin6, sizeof(struct sockaddr_in6));
  17. + memset((char *) &sin6, 0, sizeof(struct sockaddr_in6));
  18. sin6.sin6_family = AF_INET6;
  19. memset(dest_addr, 0, INET6_ADDRSTRLEN);
  20. @@ -564,7 +564,7 @@ int send_message() {
  21. iface = iface->next) {
  22. uservers = iface->sname;
  23. while (uservers != NULL) {
  24. - bzero((char *) &sin6, sizeof(struct sockaddr_in6));
  25. + memset((char *) &sin6, 0, sizeof(struct sockaddr_in6));
  26. sin6.sin6_family = AF_INET6;
  27. memset(dest_addr, 0, INET6_ADDRSTRLEN);
  28. @@ -644,7 +644,7 @@ int send_message() {
  29. for (si = sifaces_list.next; si != &sifaces_list; si = si->next) {
  30. *(mesg->hc_pointer) = MAXHOPCOUNT;
  31. - bzero((char *) &sin6, sizeof(struct sockaddr_in6));
  32. + memset((char *) &sin6, 0, sizeof(struct sockaddr_in6));
  33. sin6.sin6_family = AF_INET6;
  34. memset(dest_addr, 0, INET6_ADDRSTRLEN);
  35. @@ -734,7 +734,7 @@ int send_message() {
  36. continue;
  37. *(mesg->hc_pointer) = MAXHOPCOUNT;
  38. - bzero((char *) &sin6, sizeof(struct sockaddr_in6));
  39. + memset((char *) &sin6, 0, sizeof(struct sockaddr_in6));
  40. sin6.sin6_family = AF_INET6;
  41. memset(dest_addr, 0, INET6_ADDRSTRLEN);