Changeset b9be9b0 in mainline for uspace/lib/inet/src/udp.c


Ignore:
Timestamp:
2022-03-04T09:11:58Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
af259da
Parents:
917324b
git-author:
Jiri Svoboda <jiri@…> (2022-03-03 18:11:14)
git-committer:
Jiri Svoboda <jiri@…> (2022-03-04 09:11:58)
Message:

Fix handling of UDP default destination in udp_assoc_send_msg()

Fixes netecho failing to send any message.

File:
1 edited

Legend:

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

    r917324b rb9be9b0  
    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.