Changeset 4aa8a04 for protocols/msn/ns.c


Ignore:
Timestamp:
2010-09-04T15:54:52Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
27053b5
Parents:
bae0617
Message:

This works (includes some token sabotage code to ease testing), but I just
realised there's probably no need for the additional temporary NS connection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/ns.c

    rbae0617 r4aa8a04  
    111111        handler->rxq = g_new0( char, 1 );
    112112       
    113         if( msn_ns_write( ic, -1, "VER %d %s CVR0\r\n", ++md->trId, MSNP_VER ) )
     113        if( msn_ns_write( ic, source, "VER %d %s CVR0\r\n", ++md->trId, MSNP_VER ) )
    114114        {
    115115                handler->inpa = b_input_add( handler->fd, B_EV_IO_READ, msn_ns_callback, handler );
     
    173173                }
    174174               
    175                 return( msn_ns_write( ic, -1, "CVR %d 0x0409 mac 10.2.0 ppc macmsgs 3.5.1 macmsgs %s\r\n",
     175                return( msn_ns_write( ic, handler->fd, "CVR %d 0x0409 mac 10.2.0 ppc macmsgs 3.5.1 macmsgs %s\r\n",
    176176                                      ++md->trId, ic->acc->user ) );
    177177        }
     
    179179        {
    180180                /* We don't give a damn about the information we just received */
    181                 return msn_ns_write( ic, -1, "USR %d SSO I %s\r\n", ++md->trId, ic->acc->user );
     181                return msn_ns_write( ic, handler->fd, "USR %d SSO I %s\r\n", ++md->trId, ic->acc->user );
    182182        }
    183183        else if( strcmp( cmd[0], "XFR" ) == 0 )
     
    272272                    strcmp( cmd[3], "S" ) == 0 )
    273273                {
    274                         msn_soap_passport_sso_request( ic, cmd[4], cmd[5] );
     274                        g_free( md->pp_policy );
     275                        md->pp_policy = g_strdup( cmd[4] );
     276                        msn_soap_passport_sso_request( ic, cmd[5] );
     277                        if( handler == md->auth )
     278                        {
     279                                msn_ns_close( md->auth );
     280                                return 0;
     281                        }
    275282                }
    276283                else if( strcmp( cmd[2], "OK" ) == 0 )
Note: See TracChangeset for help on using the changeset viewer.