The structure in master branch is:
```c
struct bencode_item {
bencode_type_t type;
struct iovec iov[2]; /* when decoding, iov[1] contains the contents of a string object
*/
unsigned int iov_cnt;
unsigned int str_len; /* length of the whole ENCODED object. NOT the length of a byte
string */
long long int value; /* when decoding an integer, contains the value; otherwise used
internally */
bencode_item_t *parent, *child, *last_child, *sibling;
bencode_buffer_t *buffer;
char __buf[0];
};
```
Did you shift the other fields as well, not only the one in the diff?
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3058#issuecomment-1077731420
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3058/1077731420(a)github.com>