Changeset c9603a3


Ignore:
Timestamp:
2016-04-06T18:08:41Z (9 years ago)
Author:
Marius Halden <marius.h@…>
Branches:
master
Children:
991c75f
Parents:
64b4263
git-author:
Marius Halden <marius.h@…> (06-04-16 17:51:13)
git-committer:
Marius Halden <marius.h@…> (06-04-16 18:08:41)
Message:

Ignore CAP END when received multiple times

This fixes a segfault when CAP END was received after the capabilty
negotiation was already over.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_cap.c

    r64b4263 rc9603a3  
    177177
    178178        } else if (g_strcasecmp(cmd[1], "END") == 0) {
     179                if (!(irc->status & USTATUS_CAP_PENDING)) {
     180                        return;
     181                }
    179182                irc->status &= ~USTATUS_CAP_PENDING;
    180183
Note: See TracChangeset for help on using the changeset viewer.