Changeset 329f9fe


Ignore:
Timestamp:
2014-02-02T00:31:49Z (10 years ago)
Author:
unknown <pesco@…>
Branches:
master
Children:
71004a3
Parents:
367ea3c
Message:

use OTRL_INSTAG_BEST instead of _RECENT to work around a segfault in libotr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r367ea3c r329f9fe  
    444444        irc_t *irc = iu->irc;
    445445        struct im_connection *ic = iu->bu->ic;
    446         otrl_instag_t instag = OTRL_INSTAG_RECENT; // XXX?
     446        otrl_instag_t instag = OTRL_INSTAG_BEST; // XXX?
     447        /* NB: in libotr 4.0.0 OTRL_INSTAG_RECENT will cause a null-pointer deref
     448         * in otrl_message_sending with newly-added OTR contexts.
     449         */
    447450
    448451        /* don't do OTR on certain (not classic IM) protocols, e.g. twitter */
     
    13451348        irc_user_t *u;
    13461349        ConnContext *ctx;
    1347         otrl_instag_t instag = OTRL_INSTAG_RECENT;  // XXX
     1350        otrl_instag_t instag = OTRL_INSTAG_BEST;  // XXX
    13481351
    13491352        u = irc_user_by_name(irc, nick);
Note: See TracChangeset for help on using the changeset viewer.