~ubuntu-branches/ubuntu/trusty/libotr/trusty

« back to all changes in this revision

Viewing changes to debian/patches/message_fragment_fix.patch

  • Committer: Package Import Robot
  • Author(s): Micah Anderson
  • Date: 2013-05-10 21:20:07 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20130510212007-1ii5iuane0quazlo
Tags: 4.0.0-2.2
* Non-maintainer upload
* Upload experimental version to unstable
* Bump standards version: no changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Pass opdata when sending message fragment
 
2
 
 
3
The inject_message callback was missing the opdata when sending message
 
4
fragments.
 
5
 
 
6
--- a/src/message.c
 
7
+++ b/src/message.c
 
8
@@ -441,7 +441,7 @@ fragment:
 
9
        /* Fragment and send according to policy */
 
10
        if (!err && messagep && *messagep) {
 
11
            if (context) {
 
12
-               err = fragment_and_send(ops, NULL, context, *messagep,
 
13
+               err = fragment_and_send(ops, opdata, context, *messagep,
 
14
                        fragPolicy, messagep);
 
15
            }
 
16
        }