Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix os crash caused by optoe when class switch
When the device is initially set to optoe2, there is an option->client[1]. If echo 3>dev_class is manually set at this time, as for optoe3, option->client[1] is meaningless but the content is still the address data of optoe2, accessing an illegal address will occur, causing the device to crash. Therefore, set option->client[1] to NULL when unregistering device Signed-off-by: philo <philo@micasnetworks.com>
- Loading branch information