mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
modules: return -EINVAL on invalid port
This commit is contained in:
parent
7568a64ab6
commit
f31d87cfee
1 changed files with 1 additions and 0 deletions
|
|
@ -511,6 +511,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
|
||||
impl->src_port = pw_properties_get_uint32(props, "source.port", 0);
|
||||
if (impl->src_port == 0) {
|
||||
res = -EINVAL;
|
||||
pw_log_error("invalid source.port");
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue