<div dir="ltr"><p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'">fragment:</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"> <span style="color:rgb(187,44,162)">if</span> (fragPolicy == OTRL_FRAGMENT_SEND_SKIP ) {</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro';color:rgb(0,132,0)"><span style="color:rgb(0,0,0)"><span class="" style="white-space:pre"> </span></span>/* Do not fragment/inject. Default behaviour of libotr3.2.0 */</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span><span style="color:rgb(187,44,162)">return</span> err;</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"> } <span style="color:rgb(187,44,162)">else</span> {</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro';color:rgb(0,132,0)"><span style="color:rgb(0,0,0)"><span class="" style="white-space:pre"> </span></span>/* Fragment and send according to policy */</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span><span style="color:rgb(187,44,162)">if</span> (!err && messagep && *messagep) {</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span> <span style="color:rgb(187,44,162)">if</span> (context) {</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span>err = fragment_and_send(ops, <span style="color:rgb(187,44,162)">NULL</span>, context, *messagep,</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span>fragPolicy, messagep);</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span> }</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span>}</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><span class="" style="white-space:pre"> </span><span style="color:rgb(187,44,162)">return</span> err;</p>
<p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"> }</p><p style="margin:0px;font-size:14px;font-family:'Anonymous Pro'"><br></p><br>When setting opdata to non-NULL via the otrl_message_sending function, the inject_message_cb callback will have a null opdata because on line 444 of message.c NULL is passed into fragment_and_send instead of opdata.<div>
<br></div><div><br></div></div>