socket: pass cred to bind and setopt

This commit is contained in:
Matheus
2024-08-30 22:59:57 -03:00
parent ca42167fe1
commit 5d74bfa5f7
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ void udp_process(netdev_t *netdev, void *buffer, uint32_t peer) {
__atomic_sub_fetch(&socket->packetsprocessing, 1, __ATOMIC_SEQ_CST);
}
static int udp_bind(socket_t *socket, sockaddr_t *addr) {
static int udp_bind(socket_t *socket, sockaddr_t *addr, cred_t *cred) {
int e;
MUTEX_ACQUIRE(&socket->mutex, false);
if (socket->state != SOCKET_STATE_UNBOUND) {