HomeFreeBSD

libnetmap: reset errno in nmreq_register_decode()

Description

libnetmap: reset errno in nmreq_register_decode()

The reset is necessary at the beginning of the function, because of
the errno logic in the error path (set errno to EINVAL if not set).
If errno is already set when calling the function, and the function
fails, the previous errno value will be inherited.

Details

Provenance
vmaffioneAuthored on Apr 2 2021, 2:31 PM
Parents
rG69efe3695d75: config(8): remove support for -p
Branches
Unknown
Tags
Unknown