Changeset 7c2daf5f for protocols


Ignore:
Timestamp:
2012-01-27T23:16:15Z (12 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
85341dd
Parents:
441b9dd
Message:

skype: don't crash in skype_parse_user() if the user has multiple about lines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/skype/skype.c

    r441b9dd r7c2daf5f  
    410410                                        sd->info_fullname);
    411411                        g_free(sd->info_fullname);
     412                        sd->info_fullname = NULL;
    412413                }
    413414                if (sd->info_phonehome) {
     
    416417                                        sd->info_phonehome);
    417418                        g_free(sd->info_phonehome);
     419                        sd->info_phonehome = NULL;
    418420                }
    419421                if (sd->info_phoneoffice) {
     
    422424                                        sd->info_phoneoffice);
    423425                        g_free(sd->info_phoneoffice);
     426                        sd->info_phoneoffice = NULL;
    424427                }
    425428                if (sd->info_phonemobile) {
     
    428431                                        sd->info_phonemobile);
    429432                        g_free(sd->info_phonemobile);
     433                        sd->info_phonemobile = NULL;
    430434                }
    431435                g_string_append_printf(st, "Personal Information\n");
     
    435439                                        "Contacts: %s\n", sd->info_nrbuddies);
    436440                        g_free(sd->info_nrbuddies);
     441                        sd->info_nrbuddies = NULL;
    437442                }
    438443                if (sd->info_tz) {
     
    447452                        }
    448453                        g_free(sd->info_tz);
     454                        sd->info_tz = NULL;
    449455                }
    450456                if (sd->info_seen) {
     
    458464                        }
    459465                        g_free(sd->info_seen);
     466                        sd->info_seen = NULL;
    460467                }
    461468                if (sd->info_birthday) {
     
    477484                        }
    478485                        g_free(sd->info_birthday);
     486                        sd->info_birthday = NULL;
    479487                }
    480488                if (sd->info_sex) {
     
    487495                        }
    488496                        g_free(sd->info_sex);
     497                        sd->info_sex = NULL;
    489498                }
    490499                if (sd->info_language) {
     
    499508                        }
    500509                        g_free(sd->info_language);
     510                        sd->info_language = NULL;
    501511                }
    502512                if (sd->info_country) {
     
    511521                        }
    512522                        g_free(sd->info_country);
     523                        sd->info_country = NULL;
    513524                }
    514525                if (sd->info_province) {
     
    517528                                        "Region: %s\n", sd->info_province);
    518529                        g_free(sd->info_province);
     530                        sd->info_province = NULL;
    519531                }
    520532                if (sd->info_city) {
     
    523535                                        "City: %s\n", sd->info_city);
    524536                        g_free(sd->info_city);
     537                        sd->info_city = NULL;
    525538                }
    526539                if (sd->info_homepage) {
     
    529542                                        "Homepage: %s\n", sd->info_homepage);
    530543                        g_free(sd->info_homepage);
     544                        sd->info_homepage = NULL;
    531545                }
    532546                if (sd->info_about) {
     
    535549                                        sd->info_about);
    536550                        g_free(sd->info_about);
     551                        sd->info_about = NULL;
    537552                }
    538553                imcb_log(ic, "%s", st->str);
Note: See TracChangeset for help on using the changeset viewer.