Browse Source

minor cleaning

Oleg Moskalenko 9 năm trước cách đây
mục cha
commit
95eec6b88b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/client/ns_turn_msg.c

+ 2 - 2
src/client/ns_turn_msg.c

@@ -1439,8 +1439,8 @@ int stun_attr_get_addr_str(const u08bits *buf, size_t len, stun_attr_ref attr, i
   stun_tid_from_message_str(buf, len, &tid);
   stun_tid_from_message_str(buf, len, &tid);
   ioa_addr public_addr;
   ioa_addr public_addr;
 
 
-  ns_bzero(ca, sizeof(ioa_addr));
-  ns_bzero(&public_addr, sizeof(ioa_addr));
+  addr_set_any(ca);
+  addr_set_any(&public_addr);
 
 
   int attr_type = stun_attr_get_type(attr);
   int attr_type = stun_attr_get_type(attr);
   if(attr_type<0) return -1;
   if(attr_type<0) return -1;