summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/db_shadow.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd/hackers_git/db_shadow.go')
-rw-r--r--src/nshd/hackers_git/db_shadow.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nshd/hackers_git/db_shadow.go b/src/nshd/hackers_git/db_shadow.go
index 468f79d..97af6e9 100644
--- a/src/nshd/hackers_git/db_shadow.go
+++ b/src/nshd/hackers_git/db_shadow.go
@@ -59,8 +59,13 @@ func (e *allShadowEnumerator) GetNext() (*p.Shadow, error) {
return nil, nil
}
-func (e *allShadowEnumerator) GenericGetNext() (interface{}, error) {
- return e.GetNext()
+func (o *allShadowEnumerator) GenericGetNext() (n *interface{}, err error) {
+ a, err := o.GetNext()
+ if a != nil {
+ b := (interface{})(*a)
+ n = &b
+ }
+ return
}
func (o *Hackers) newAllShadowEnumerator() *allShadowEnumerator {