Ignore:
Timestamp:
2016-11-20T08:40:36Z (8 years ago)
Author:
dequis <dx@…>
Children:
3f44e43
Parents:
ba52ac5 (diff), 9f03c47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge master up to commit '9f03c47' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/conn.c

    rba52ac5 r537d9b9  
    383383{
    384384        aim_conn_t *connstruct;
    385         guint16 port = AIM_LOGIN_PORT;
    386         char *host;
    387         int i;
    388385
    389386        if (!(connstruct = aim_conn_getnext(sess))) {
     
    400397        }
    401398
    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);
     399        /* The code that used to be here was very broken */
     400        g_return_val_if_reached(connstruct);
    425401
    426402        return connstruct;
Note: See TracChangeset for help on using the changeset viewer.