Skip to content

dell1600n_net: return empty device list when local devices are requested

My previous MR (!502 (merged)) made the dell1600n_net backend return GOOD status when local devices are requested. This is problematic since in that case the caller may assume that the passed device list has been populated. However, this is not the case for this backend, since the device list is not modified in any way in that case. The caller trying to access the device list may lead to undesired consequences. Fix that by return SANE_STATUS_ACCESS_DENIED if 'local_only' is true.

Edited by Barnabás Pőcze

Merge request reports