diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-11 23:23:01 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-11 23:24:42 -0600 |
commit | da8d8e0b23fb8585063a93d093e843c69cd3f07b (patch) | |
tree | e7b44d17625bec689cfdf1e1924398cec510df35 /src/nshd/hackers_git | |
parent | 5e781d7539ac8f1f17e6cfa04c3c28fdfe65f4db (diff) |
tidy
Diffstat (limited to 'src/nshd/hackers_git')
-rw-r--r-- | src/nshd/hackers_git/db_passwd.go | 3 | ||||
-rw-r--r-- | src/nshd/hackers_git/hackers.go | 1 |
2 files changed, 1 insertions, 3 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() } diff --git a/src/nshd/hackers_git/hackers.go b/src/nshd/hackers_git/hackers.go index 9e3976b..446351d 100644 --- a/src/nshd/hackers_git/hackers.go +++ b/src/nshd/hackers_git/hackers.go @@ -55,7 +55,6 @@ func (o *Hackers) Close() { logger.Info("Closing hackers.git session") o.lock.Lock() defer o.lock.Unlock() - o.close() } |