Merge pull request #73 from bitcraftCoLtd/master
fix memory initialization in src/client/ns_turn_msg.c in function stun_attr_get_addr_str
This commit is contained in:
commit
00e0609a68
@ -1439,7 +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(ca, sizeof(ioa_addr));
|
||||||
|
ns_bzero(&public_addr, sizeof(ioa_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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user