Changeset c94e208


Ignore:
Timestamp:
2016-10-18T07:00:24Z (7 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
50988d1
Parents:
b7fec48
git-author:
dequis <dx@…> (18-10-16 06:59:41)
git-committer:
dequis <dx@…> (18-10-16 07:00:24)
Message:

oscar: remove some dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/conn.c

    rb7fec48 rc94e208  
    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.