Changeset 088b070 for protocols/msn/ns.c


Ignore:
Timestamp:
2015-05-08T02:02:14Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
5014380
Parents:
5535a47
Message:

msn: fix use-after-free when the server sends OUT

Also fix a leak in msn_ns_callback while i'm at it.

Also fix a potential null deref when req->reply_body is null and
BITLBEE_DEBUG is enabled, but i don't even know if this one can happen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    r5535a47 r088b070  
    181181                imcb_error(ic, "Error while reading from server");
    182182                imc_logout(ic, TRUE);
     183                g_free(bytes);
    183184                return FALSE;
    184185        }
     
    188189        g_free(bytes);
    189190
    190         /* Ignore ret == 0, it's already disconnected then. */
    191         msn_handler(md);
    192 
    193         return TRUE;
    194        
     191        return msn_handler(md);
    195192}
    196193
Note: See TracChangeset for help on using the changeset viewer.