mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-02 06:46:36 -04:00
security: check netjack2_init return value in driver
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
0816d4a2fd
commit
c21616d1ee
1 changed files with 4 additions and 1 deletions
|
|
@ -923,7 +923,10 @@ static int handle_follower_setup(struct impl *impl, struct nj2_session_params *p
|
|||
peer->send_volume = &impl->sink.volume;
|
||||
peer->recv_volume = &impl->source.volume;
|
||||
peer->quantum_limit = impl->quantum_limit;
|
||||
netjack2_init(peer);
|
||||
if ((res = netjack2_init(peer)) < 0) {
|
||||
pw_log_error("can't init peer: %s", spa_strerror(res));
|
||||
return res;
|
||||
}
|
||||
|
||||
int bufsize = SPA_MIN((size_t)NETWORK_MAX_LATENCY * (peer->params.mtu +
|
||||
(size_t)peer->params.period_size * sizeof(float) *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue