diff --git a/libs/sofia-sip/libsofia-sip-ua/stun/stun_mini.c b/libs/sofia-sip/libsofia-sip-ua/stun/stun_mini.c index b5ec01ec23..4c72c0dff7 100644 --- a/libs/sofia-sip/libsofia-sip-ua/stun/stun_mini.c +++ b/libs/sofia-sip/libsofia-sip-ua/stun/stun_mini.c @@ -372,6 +372,7 @@ int send_stun_error(stun_msg_t *response, attr = malloc(sizeof *attr); if (!attr) return -1; response->stun_attr = attr; attr->attr_type = ERROR_CODE; + attr->next = NULL; errorcode = malloc(sizeof(*errorcode)); if (!errorcode)