Changeset 1f2b07a in mainline for uspace/srv/net/udp/service.c


Ignore:
Timestamp:
2015-06-08T22:00:22Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dc0d6e5d
Parents:
204ba47
Message:

TCP and UDP client code needs to make sure callback connection handler has terminated before freeing session-related data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/service.c

    r204ba47 r1f2b07a  
    490490        log_msg(LOG_DEFAULT, LVL_DEBUG, "udp_client_conn()");
    491491
     492        client.sess = NULL;
    492493        list_initialize(&client.cassoc);
    493494        list_initialize(&client.crcv_queue);
     
    545546
    546547        /* XXX Clean up client receive queue */
     548
     549        if (client.sess != NULL)
     550                async_hangup(client.sess);
    547551}
    548552
Note: See TracChangeset for help on using the changeset viewer.