Changeset a26af5c for protocols


Ignore:
Timestamp:
2010-07-13T20:13:46Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e693ac2
Parents:
00540d4
Message:

Fixing NULL pointer dereferences in Twitter module. Based on patch from
wahjava (bug #650).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    r00540d4 ra26af5c  
    6666static void txu_free(struct twitter_xml_user *txu)
    6767{
     68        if (txu == NULL)
     69                return;
    6870        g_free(txu->name);
    6971        g_free(txu->screen_name);
     
    8991{
    9092        GSList *l;
     93        if (txl == NULL)
     94                return;
    9195        for ( l = txl->list; l ; l = g_slist_next(l) )
    9296                if (txl->type == TXL_STATUS)
     
    473477        {
    474478                status = l->data;
     479                if (status->user == NULL || status->text == NULL)
     480                        continue;
     481
    475482                twitter_add_buddy(ic, status->user->screen_name, status->user->name);
    476483               
Note: See TracChangeset for help on using the changeset viewer.