Changeset f26db4a8


Ignore:
Timestamp:
2010-10-01T20:38:16Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
944d7a5
Parents:
7c91392
Message:

explicitly handle cheating by smp opponent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • otr.c

    r7c91392 rf26db4a8  
    10741074        nextMsg = context->smstate->nextExpected;
    10751075
     1076        if (context->smstate->sm_prog_state == OTRL_SMP_PROG_CHEATED) {
     1077                irc_usermsg(irc, "smp %s: opponent violated protocol, aborting",
     1078                        u->nick);
     1079                otrl_message_abort_smp(us, ops, u->bu->ic, context);
     1080                otrl_sm_state_free(context->smstate);
     1081                return;
     1082        }
     1083
    10761084        tlv = otrl_tlv_find(tlvs, OTRL_TLV_SMP1Q);
    10771085        if (tlv) {
Note: See TracChangeset for help on using the changeset viewer.