stun attr: use sizeof target pointer for mem_zalloc()

This commit is contained in:
Alfred E. Heggestad 2010-11-13 17:48:08 +00:00
parent 6648fd2393
commit b355486ee8

View file

@ -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;