Changeset c6bf805 for protocols/yahoo


Ignore:
Timestamp:
2010-07-25T13:59:12Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
3fa5a8c
Parents:
51a3d12
Message:

Some NULL pointer checks for libyahoo2 - this code's currently crashing
because BitlBee ignores file transfers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    r51a3d12 rc6bf805  
    48304830static void yahoo_remove_active_transfer(struct send_file_data *sfd)
    48314831{
     4832        if (sfd == NULL)
     4833                return;
     4834       
    48324835        active_file_transfers = y_list_remove(active_file_transfers, sfd);
    48334836        free(sfd->id);
     
    49904993                YAHOO_CALLBACK(ext_yahoo_file_transfer_done)
    49914994                        (yid->yd->client_id, YAHOO_FILE_TRANSFER_UNKNOWN,
    4992                         sfd->data);
     4995                        sfd ? sfd->data : NULL);
    49934996
    49944997                yahoo_remove_active_transfer(sfd);
     
    50465049                YAHOO_CALLBACK(ext_yahoo_file_transfer_done)
    50475050                        (yid->yd->client_id, YAHOO_FILE_TRANSFER_UNKNOWN,
    5048                         sfd->data);
     5051                        sfd ? sfd->data : NULL);
    50495052
    50505053                yahoo_remove_active_transfer(sfd);
     
    51615164                        YAHOO_CALLBACK(ext_yahoo_file_transfer_done)
    51625165                                (yd->client_id, YAHOO_FILE_TRANSFER_REJECT,
    5163                                 sfd->data);
     5166                                sfd ? sfd->data : NULL);
    51645167
    51655168                        yahoo_remove_active_transfer(sfd);
Note: See TracChangeset for help on using the changeset viewer.