neighbor/smbclient: fix double smbc_closedir() call
There is already one call in ReadServers(), which is the correct place to do it.
This commit is contained in:
		| @@ -150,8 +150,6 @@ ReadServers(NeighborExplorer::List &list, int fd) | |||||||
| 	smbc_dirent *e; | 	smbc_dirent *e; | ||||||
| 	while ((e = smbc_readdir(fd)) != nullptr) | 	while ((e = smbc_readdir(fd)) != nullptr) | ||||||
| 		ReadEntry(list, *e); | 		ReadEntry(list, *e); | ||||||
|  |  | ||||||
| 	smbc_closedir(fd); |  | ||||||
| } | } | ||||||
|  |  | ||||||
| static void | static void | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann