Changeset b4ca0a9c in mainline for uspace/srv/net/tcp/sock.c


Ignore:
Timestamp:
2012-07-10T11:53:50Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1e01a35
Parents:
a33706e (diff), 33fc3ae (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 mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tcp/sock.c

    ra33706e rb4ca0a9c  
    6868int tcp_sock_init(void)
    6969{
    70         int rc;
    71 
    7270        socket_ports_initialize(&gsock);
    73 
     71       
    7472        async_set_client_connection(tcp_sock_connection);
    75 
    76         rc = service_register(SERVICE_TCP);
     73       
     74        int rc = service_register(SERVICE_TCP);
    7775        if (rc != EOK)
    7876                return EEXIST;
    79 
     77       
    8078        return EOK;
    8179}
     
    153151            sock, sock_id);
    154152
    155         if (rc != EOK)
     153        if (rc != EOK) {
     154                fibril_destroy(sock->recv_fibril);
     155                sock->recv_fibril = 0;
    156156                return rc;
     157        }
    157158
    158159        sock_core = socket_cores_find(&sock->client->sockets, *sock_id);
Note: See TracChangeset for help on using the changeset viewer.