summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/db_passwd.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd/hackers_git/db_passwd.go')
-rw-r--r--src/nshd/hackers_git/db_passwd.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nshd/hackers_git/db_passwd.go b/src/nshd/hackers_git/db_passwd.go
index 719ff3f..750e458 100644
--- a/src/nshd/hackers_git/db_passwd.go
+++ b/src/nshd/hackers_git/db_passwd.go
@@ -52,8 +52,7 @@ func (e *allPasswdEnumerator) GetNext() (*p.Passwd, error) {
passwd.PwHash = "x" // only put actual hashes in the Shadow DB
e.uids = e.uids[1:]
return &passwd, nil
- }
- if len(e.uids) == 0 && !e.done {
+ } else if !e.done {
e.done = true
e.backend.lock.RUnlock()
}