Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/inet/src/udp.c

    rec7902d rb9be9b0  
    2727 */
    2828
    29 /** @addtogroup libc
     29/** @addtogroup libinet
    3030 * @{
    3131 */
     
    256256{
    257257        async_exch_t *exch;
     258        inet_ep_t ddest;
    258259
    259260        exch = async_exchange_begin(assoc->udp->sess);
    260261        aid_t req = async_send_1(exch, UDP_ASSOC_SEND_MSG, assoc->id, NULL);
     262
     263        /* If dest is null, use default destination */
     264        if (dest == NULL) {
     265                inet_ep_init(&ddest);
     266                dest = &ddest;
     267        }
    261268
    262269        errno_t rc = async_data_write_start(exch, (void *)dest,
Note: See TracChangeset for help on using the changeset viewer.