Changeset 3c28bd4


Ignore:
Timestamp:
2015-05-31T02:40:05Z (5 years ago)
Author:
dequis <dx@…>
Children:
27a057c
Parents:
b994034
git-author:
dequis <dx@…> (15-05-15 04:28:25)
git-committer:
dequis <dx@…> (31-05-15 02:40:05)
Message:

msn: fix use after free in msn_handle_command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn_util.c

    rb994034 r3c28bd4  
    195195        count = g_strv_length(cmd);
    196196
     197        /* msn_data might be freed if there's a server error,
     198         * so clean this up now - we don't need it anymore */
     199        g_free(h->cmd_text);
     200        h->cmd_text = NULL;
     201
    197202        st = msn_ns_command(h, cmd, count, msg, h->msglen);
    198203
    199204        g_strfreev(cmd);
    200205        g_free(msg);
    201 
    202         g_free(h->cmd_text);
    203         h->cmd_text = NULL;
    204206
    205207        return st;
Note: See TracChangeset for help on using the changeset viewer.