Changeset b9be9b0 in mainline for uspace/srv/net/udp/assoc.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/srv/net/udp/assoc.c

    r917324b rb9be9b0  
    243243 *
    244244 * @param assoc         Association
    245  * @param remote        Remote endpoint or NULL not to override @a assoc
     245 * @param remote        Remote endpoint or inet_addr_any/inet_port_any
     246 *                      not to override association's remote endpoint
    246247 * @param msg           Message
    247248 *
     
    261262        /* @a remote can be used to override the remote endpoint */
    262263        epp = assoc->ident;
    263         if (remote != NULL)
     264        if (!inet_addr_is_any(&remote->addr) &&
     265            remote->port != inet_port_any)
    264266                epp.remote = *remote;
    265267
Note: See TracChangeset for help on using the changeset viewer.