# HG changeset patch # User sulabh@pidgin.im # Date 1283372972 0 # Node ID fc961dfd4122570097de02faf8a1c056940a4cee # Parent 75460aee92796f0be15f203794dc8ba79135060f Fix file transfers. yahoo_get_cookies() doesn't seem to be working. As a fix construct cookie by printing individual cookies together. diff -r 75460aee9279 -r fc961dfd4122 libpurple/protocols/yahoo/yahoo_filexfer.c --- a/libpurple/protocols/yahoo/yahoo_filexfer.c Wed Sep 01 17:55:14 2010 +0000 +++ b/libpurple/protocols/yahoo/yahoo_filexfer.c Wed Sep 01 20:29:32 2010 +0000 @@ -1253,7 +1253,14 @@ if (xd->txbuflen == 0) { gchar* cookies; - cookies = yahoo_get_cookies(gc); + YahooData *yd = gc->proto_data; + + /* cookies = yahoo_get_cookies(gc); + * This doesn't seem to be working. The function is returning NULL, which yahoo servers don't like + * For now let us not use this function */ + + cookies = g_strdup_printf("Y=%s; T=%s", yd->cookie_y, yd->cookie_t); + if(purple_xfer_get_type(xfer) == PURPLE_XFER_SEND && xd->status_15 == ACCEPTED) { if(xd->info_val_249 == 2)