opnsense-src/lib/libnetmap
Vincenzo Maffione 806b6c56af 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.

(cherry picked from commit ab639bb287)
2021-09-27 09:44:28 +02:00
..
libnetmap.h MFC r366011 2021-08-17 07:30:34 +02:00
Makefile MFC r364936, r365023 2021-08-17 07:30:33 +02:00
nmctx-pthreads.c MFC r364936, r365023 2021-08-17 07:30:33 +02:00
nmctx.c MFC r364936, r365023 2021-08-17 07:30:33 +02:00
nmport.c MFC r366011 2021-08-17 07:30:34 +02:00
nmreq.c libnetmap: reset errno in nmreq_register_decode() 2021-09-27 09:44:28 +02:00