Odr_oct *term_octet = (Odr_oct *)odr_malloc(o, sizeof(*term_octet));
term_octet->buf = (unsigned char *)odr_malloc(o, 1 + len);
memcpy(term_octet->buf, buf, len);
Odr_oct *term_octet = (Odr_oct *)odr_malloc(o, sizeof(*term_octet));
term_octet->buf = (unsigned char *)odr_malloc(o, 1 + len);
memcpy(term_octet->buf, buf, len);