Changeset b994034 for protocols/msn/gw.c


Ignore:
Timestamp:
2015-05-31T02:40:05Z (9 years ago)
Author:
dequis <dx@…>
Children:
3c28bd4
Parents:
3fb7139
git-author:
dequis <dx@…> (15-05-15 04:04:28)
git-committer:
dequis <dx@…> (31-05-15 02:40:05)
Message:

msn: check for dead connections in msn_ns_callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/gw.c

    r3fb7139 rb994034  
    8585
    8686        if (req->status_code != 200 || !req->reply_body) {
    87                 gw->callback(gw->md, -1, B_EV_IO_READ);
     87                gw->callback(req->data, -1, B_EV_IO_READ);
    8888                return;
    8989        }
     
    9696        if ((value = get_rfc822_header(req->reply_headers, "X-MSN-Messenger", 0))) {
    9797                if (!msn_gw_parse_session_header(gw, value)) {
    98                         gw->callback(gw->md, -1, B_EV_IO_READ);
     98                        gw->callback(req->data, -1, B_EV_IO_READ);
    9999                        g_free(value);
    100100                        return;
     
    111111                g_byte_array_append(gw->in, (const guint8 *) req->reply_body, req->body_size);
    112112
    113                 if (!gw->callback(gw->md, -1, B_EV_IO_READ)) {
     113                if (!gw->callback(req->data, -1, B_EV_IO_READ)) {
    114114                        return;
    115115                }
Note: See TracChangeset for help on using the changeset viewer.