Commit d28307e0 authored by Max Kellermann's avatar Max Kellermann

neighbor/smbclient: fix double smbc_closedir() call

There is already one call in ReadServers(), which is the correct place to do it.
parent aa5c5bf1
...@@ -149,8 +149,6 @@ ReadServers(NeighborExplorer::List &list, int fd) noexcept ...@@ -149,8 +149,6 @@ ReadServers(NeighborExplorer::List &list, int fd) noexcept
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment