diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-05 00:43:54 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-09-05 00:43:54 -0600 |
commit | 955e8e2dc4bd7865f2b21139d61424a168e5a041 (patch) | |
tree | 89c135b5531d5562b84d250c78dc1422e4c0becf /src/nslcd_proto/func_handlerequest.go.sh | |
parent | 79f7c721b7275208bb2bef0fec87e1a732353b74 (diff) |
The way nslcd_proto's GenericGetNext was designed, nil checks didn't work
Diffstat (limited to 'src/nslcd_proto/func_handlerequest.go.sh')
-rwxr-xr-x | src/nslcd_proto/func_handlerequest.go.sh | 6 |
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) |