Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/soap.c

    rcdd1ded r693aca0  
    270270        struct im_connection *ic = soap_req->ic;
    271271        struct msn_data *md = ic->proto_data;
     272        char pass[MAX_PASSPORT_PWLEN + 1];
    272273
    273274        if (sd->redirect) {
     
    285286        }
    286287
     288        strncpy(pass, ic->acc->pass, MAX_PASSPORT_PWLEN);
     289        pass[MAX_PASSPORT_PWLEN] = '\0';
    287290        soap_req->payload = g_markup_printf_escaped(SOAP_PASSPORT_SSO_PAYLOAD,
    288                                                     ic->acc->user, ic->acc->pass, md->pp_policy);
     291                                                    ic->acc->user, pass, md->pp_policy);
    289292
    290293        return MSN_SOAP_OK;
     
    324327        struct xt_node *code = xt_find_node(node->children, "faultcode");
    325328        struct xt_node *string = xt_find_node(node->children, "faultstring");
    326         struct xt_node *reqstatus = xt_find_path(node, "psf:pp/psf:reqstatus");
    327329        struct xt_node *url;
    328330
     
    333335                   url->text_len > 0) {
    334336                sd->redirect = g_strdup(url->text);
    335         } else if (reqstatus && strcmp(reqstatus->text, "0x800488fe") == 0) {
    336                 char *msg = "Location blocked. Log in to live.com, go to recent activity and click 'this was me'";
    337                 sd->error = g_strdup_printf("%s (%s)", code->text, msg);
    338337        } else {
    339338                sd->error = g_strdup_printf("%s (%s)", code->text, string && string->text_len ?
     
    347346        { "wsse:BinarySecurityToken", "wst:RequestedSecurityToken", msn_soap_passport_sso_token },
    348347        { "S:Fault", "S:Envelope", msn_soap_passport_failure },
    349         { "S:Fault", "wst:RequestSecurityTokenResponse", msn_soap_passport_failure },
    350348        { NULL, NULL, NULL }
    351349};
     
    776774                imcb_log(soap_req->ic, "Warning: %d contacts were in both your "
    777775                         "block and your allow list. Assuming they're all "
    778                          "allowed.", wtf);
     776                         "allowed. Use the official WLM client once to fix "
     777                         "this.", wtf);
    779778        }
    780779
Note: See TracChangeset for help on using the changeset viewer.