diff options
Diffstat (limited to 'src/nshd/hackers_git/db_passwd.go')
-rw-r--r-- | src/nshd/hackers_git/db_passwd.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nshd/hackers_git/db_passwd.go b/src/nshd/hackers_git/db_passwd.go index 8aad45e..2cfaccd 100644 --- a/src/nshd/hackers_git/db_passwd.go +++ b/src/nshd/hackers_git/db_passwd.go @@ -60,8 +60,13 @@ func (e *allPasswdEnumerator) GetNext() (*p.Passwd, error) { return nil, nil } -func (e *allPasswdEnumerator) GenericGetNext() (interface{}, error) { - return e.GetNext() +func (o *allPasswdEnumerator) GenericGetNext() (n *interface{}, err error) { + a, err := o.GetNext() + if a != nil { + b := (interface{})(*a) + n = &b + } + return } func (o *Hackers) newAllPasswdEnumerator() *allPasswdEnumerator { |