Changeset 2989c7e in mainline for uspace/srv/net/tcp/ucall.c


Ignore:
Timestamp:
2015-05-25T21:04:33Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab6326bc
Parents:
58e9dec
Message:

Association map / portrange prototype.

File:
1 edited

Legend:

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

    r58e9dec r2989c7e  
    3535 */
    3636
     37#include <errno.h>
    3738#include <fibril_synch.h>
    3839#include <io/log.h>
     
    6869{
    6970        tcp_conn_t *nconn;
     71        int rc;
    7072
    7173        log_msg(LOG_DEFAULT, LVL_DEBUG, "tcp_uc_open(%p, %s, %s, %p)",
     
    7476
    7577        nconn = tcp_conn_new(epp);
    76         tcp_conn_add(nconn);
     78        rc = tcp_conn_add(nconn);
     79        if (rc != EOK) {
     80                tcp_conn_delete(nconn);
     81                return TCP_EEXISTS;
     82        }
     83
    7784        tcp_conn_lock(nconn);
    7885
Note: See TracChangeset for help on using the changeset viewer.