summaryrefslogtreecommitdiff
path: root/src/nslcd_proto/func_handlerequest.go.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-02 12:58:58 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-02 12:58:58 -0600
commit1eb1677cf916c13e07f61efc464edca1c571684d (patch)
treea25a47801de93d3027cf996b51e9cc725876b7d7 /src/nslcd_proto/func_handlerequest.go.sh
parent5fa621f8dfe2ccd674d8d94eb148c10b52b4fca0 (diff)
Clean up
Diffstat (limited to 'src/nslcd_proto/func_handlerequest.go.sh')
-rwxr-xr-xsrc/nslcd_proto/func_handlerequest.go.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nslcd_proto/func_handlerequest.go.sh b/src/nslcd_proto/func_handlerequest.go.sh
index 4008dd5..185db73 100755
--- a/src/nslcd_proto/func_handlerequest.go.sh
+++ b/src/nslcd_proto/func_handlerequest.go.sh
@@ -37,6 +37,9 @@ done < "$requests"
default:
panic(NslcdError(fmt.Sprintf("unknown request action: %#08x", action)))
}
+ if res == nil {
+ return
+ }
write(out, NSLCD_VERSION)
write(out, action)