Changes in protocols/oscar/conn.c [c94e208:0db6618]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/oscar/conn.c
rc94e208 r0db6618 383 383 { 384 384 aim_conn_t *connstruct; 385 guint16 port = AIM_LOGIN_PORT; 386 char *host; 387 int i; 385 388 386 389 if (!(connstruct = aim_conn_getnext(sess))) { … … 397 400 } 398 401 399 /* The code that used to be here was very broken */ 400 g_return_val_if_reached(connstruct); 402 /* 403 * As of 23 Jul 1999, AOL now sends the port number, preceded by a 404 * colon, in the BOS redirect. This fatally breaks all previous 405 * libfaims. Bad, bad AOL. 406 * 407 * We put this here to catch every case. 408 * 409 */ 410 411 for (i = 0; i < (int) strlen(dest); i++) { 412 if (dest[i] == ':') { 413 port = atoi(&(dest[i + 1])); 414 break; 415 } 416 } 417 418 host = (char *) g_malloc(i + 1); 419 strncpy(host, dest, i); 420 host[i] = '\0'; 421 422 connstruct->fd = proxy_connect(host, port, NULL, NULL); 423 424 g_free(host); 401 425 402 426 return connstruct;
Note: See TracChangeset
for help on using the changeset viewer.