opnsense-src/lib/libdevdctl
Alexander Motin 2f2a081e5c Fix race in case of device destruction.
During device destruction it is possible that open() succeed, but
fdevname() return NULL, that can't be assigned to string variable.
Fix that by adding explicit NULL check.

Also while there switch from fdevname() to fdevname_r().

Sponsored by:	iXsystems, Inc.
MFC after:	2 weeks

(cherry picked from commit e49d3eb403)
2021-04-27 08:47:39 -04:00
..
tests
consumer.cc
consumer.h
event.cc
event.h
event_factory.cc
event_factory.h
exception.cc
exception.h
guid.cc
guid.h
Makefile
Makefile.depend