| 347 g_free(username); |
347 g_free(username); |
| 348 g_free(password); |
348 g_free(password); |
| 349 |
349 |
| 350 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) |
350 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) |
| 351 { |
351 { |
| |
352 g_free(request_str); |
| 352 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); |
353 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); |
| 353 |
354 |
| 354 return; |
355 return; |
| 355 } |
356 } |
| |
357 |
| |
358 g_free(request_str); |
| 356 |
359 |
| 357 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) |
360 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) |
| 358 { |
361 { |
| 359 gaim_connection_error(gc, _("Unable to read from MSN Nexus server.")); |
362 gaim_connection_error(gc, _("Unable to read from MSN Nexus server.")); |
| 360 |
363 |
| 505 |
508 |
| 506 request_str = g_strdup_printf("GET /rdr/pprdr.asp\r\n\r\n"); |
509 request_str = g_strdup_printf("GET /rdr/pprdr.asp\r\n\r\n"); |
| 507 |
510 |
| 508 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) |
511 if ((s = gaim_ssl_write(gsc, request_str, strlen(request_str))) <= 0) |
| 509 { |
512 { |
| |
513 g_free(request_str); |
| 510 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); |
514 gaim_connection_error(gc, _("Unable to write to MSN Nexus server.")); |
| 511 return; |
515 return; |
| 512 } |
516 } |
| 513 |
517 |
| |
518 g_free(request_str); |
| 514 g_free(session->ssl_url); |
519 g_free(session->ssl_url); |
| 515 session->ssl_url = NULL; |
520 session->ssl_url = NULL; |
| 516 |
521 |
| 517 /* Get the PassportURLs line. */ |
522 /* Get the PassportURLs line. */ |
| 518 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) |
523 if ((s = msn_ssl_read(gsc, &buffer)) <= 0) |