viveris / uMTP-Responder

Lightweight USB Media Transfer Protocol (MTP) responder daemon for GNU/Linux
GNU General Public License v3.0
184 stars 49 forks source link

src/fs_handles_db.c: Fix segmentation fault #58

Closed pcercuei closed 3 years ago

pcercuei commented 3 years ago

closedir(NULL) causes a segmentation fault within uClibc.

Signed-off-by: Paul Cercueil paul@crapouillou.net

jfdelnero commented 3 years ago

Thanks for the fix. (I see some redundant codes in this function... i will fix this...)