Changeset 704586fb in mainline for uspace/srv/net/tl/tcp/sock.c


Ignore:
Timestamp:
2011-12-01T19:28:49Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3aa2642a
Parents:
26ec91c
Message:

Fix RST to refuse connection and handle it properly in connect().

File:
1 edited

Legend:

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

    r26ec91c r704586fb  
    248248
    249249        trc = tcp_uc_open(lport, &fsocket, ap_active, &socket->conn);
    250         socket->conn->name = (char *)"C";
     250
     251        if (socket->conn != NULL)
     252                socket->conn->name = (char *)"C";
    251253
    252254        switch (trc) {
     
    307309
    308310        trc = tcp_uc_open(sock_core->port, &fsocket, ap_passive, &conn);
    309         conn->name = (char *)"S";
     311        if (conn != NULL)
     312                conn->name = (char *)"S";
    310313
    311314        log_msg(LVL_DEBUG, " - decode TCP return code");
Note: See TracChangeset for help on using the changeset viewer.