net: Oops, we broke UDP sends

This commit is contained in:
K. Lange 2021-10-13 10:50:05 +09:00
parent 526c8fc55e
commit 7ce16a005d

View File

@ -471,7 +471,7 @@ static long sock_udp_send(sock_t * sock, const struct msghdr *msg, int flags) {
/* Routing: We need a device to send this on... */
fs_node_t * nic = net_if_any();
return 0;
if (!nic) return 0;
size_t total_length = sizeof(struct ipv4_packet) + msg->msg_iov[0].iov_len + sizeof(struct udp_packet);