stun attr: use sizeof target pointer for mem_zalloc()
This commit is contained in:
parent
6648fd2393
commit
b355486ee8
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ int stun_attr_decode(struct stun_attr **attrp, struct mbuf *mb,
|
|||
if (mbuf_get_left(mb) < 4)
|
||||
return EBADMSG;
|
||||
|
||||
attr = mem_zalloc(sizeof(struct stun_attr), destructor);
|
||||
attr = mem_zalloc(sizeof(*attr), destructor);
|
||||
if (!attr)
|
||||
return ENOMEM;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue