<p></p>
<p dir="auto">The structure in master branch is:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-k">struct</span> bencode_item {
        <span class="pl-c1">bencode_type_t</span> type;
        <span class="pl-k">struct</span> <span class="pl-c1">iovec</span> iov[<span class="pl-c1">2</span>];  <span class="pl-c"><span class="pl-c">/*</span> when decoding, iov[1] contains the contents of a string object <span class="pl-c">*/</span></span>
        <span class="pl-k">unsigned</span> <span class="pl-k">int</span> iov_cnt;
        <span class="pl-k">unsigned</span> <span class="pl-k">int</span> str_len;   <span class="pl-c"><span class="pl-c">/*</span> length of the whole ENCODED object. NOT the length of a byte string <span class="pl-c">*/</span></span>
        <span class="pl-k">long</span> <span class="pl-k">long</span> <span class="pl-k">int</span> value;    <span class="pl-c"><span class="pl-c">/*</span> when decoding an integer, contains the value; otherwise used internally <span class="pl-c">*/</span></span>
        <span class="pl-c1">bencode_item_t</span> *parent, *child, *last_child, *sibling;
        <span class="pl-c1">bencode_buffer_t</span> *buffer;
        <span class="pl-k">char</span> __buf[<span class="pl-c1">0</span>];
};</pre></div>
<p dir="auto">Did you shift the other fields as well, not only the one in the diff?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/3058#issuecomment-1077731420">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMPMYW6RNFLS4XMI7TVBSAHBANCNFSM5RFRYC6Q">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/ABO7UZOTRBQ3GALMNYFG3GDVBSAHBA5CNFSM5RFRYC62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIA6OAXA.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><kamailio/kamailio/issues/3058/1077731420</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/3058#issuecomment-1077731420",
"url": "https://github.com/kamailio/kamailio/issues/3058#issuecomment-1077731420",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>