reset_socket_info_index(fd);
- swrap_mutex_unlock(&socket_reset_mutex);
-
si = swrap_get_socket_info(si_index);
swrap_mutex_lock(&first_free_mutex);
out:
SWRAP_UNLOCK_SI(si);
swrap_mutex_unlock(&first_free_mutex);
+ swrap_mutex_unlock(&socket_reset_mutex);
}
static int sockaddr_convert_to_un(struct socket_info *si,
reset_socket_info_index(fd);
- swrap_mutex_unlock(&socket_reset_mutex);
-
si = swrap_get_socket_info(si_index);
swrap_mutex_lock(&first_free_mutex);
out:
SWRAP_UNLOCK_SI(si);
swrap_mutex_unlock(&first_free_mutex);
+ swrap_mutex_unlock(&socket_reset_mutex);
return ret;
}