summaryrefslogtreecommitdiff
path: root/src/nslcd_proto/func_handlerequest.go.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/nslcd_proto/func_handlerequest.go.sh')
-rwxr-xr-xsrc/nslcd_proto/func_handlerequest.go.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nslcd_proto/func_handlerequest.go.sh b/src/nslcd_proto/func_handlerequest.go.sh
index 8034594..45e0ed6 100755
--- a/src/nslcd_proto/func_handlerequest.go.sh
+++ b/src/nslcd_proto/func_handlerequest.go.sh
@@ -10,7 +10,7 @@ import (
)
type enumerator interface {
- GenericGetNext() (n interface{}, err error)
+ GenericGetNext() (n *interface{}, err error)
}
func handleRequest(backend Backend, in io.Reader, out io.Writer, cred Ucred) {
@@ -44,11 +44,11 @@ done < "$requests"
write(out, NSLCD_VERSION)
write(out, action)
- var result interface{}
+ var result *interface{}
var err error
for result, err = res.GenericGetNext(); (result != nil) && (err == nil); result, err = res.GenericGetNext() {
write(out, NSLCD_RESULT_BEGIN)
- write(out, result)
+ write(out, *result)
}
if err != nil {
panic(err)