summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/db_config.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:41:55 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-09-05 00:41:55 -0600
commite729072329556406dfdb19b89d177e89e27ca4a7 (patch)
tree21c7400fb901c365576229cfb389421d74a21dda /src/nshd/hackers_git/db_config.go
parent6b94a9b6588112328fa2738b1c149b48908f5029 (diff)
nslcd_h: each of the custom types should have kind==struct, to make io easy
Diffstat (limited to 'src/nshd/hackers_git/db_config.go')
-rw-r--r--src/nshd/hackers_git/db_config.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nshd/hackers_git/db_config.go b/src/nshd/hackers_git/db_config.go
index aa8bef8..1de0013 100644
--- a/src/nshd/hackers_git/db_config.go
+++ b/src/nshd/hackers_git/db_config.go
@@ -11,7 +11,7 @@ func (o *Hackers) Config_Get(cred p.Ucred, req p.Request_Config_Get) p.Config_En
var val *string = nil
- switch req {
+ switch req.Key {
case p.NSLCD_CONFIG_PAM_PASSWORD_PROHIBIT_MESSAGE:
if o.cfg.Pam_password_prohibit_message != "" {
val = &o.cfg.Pam_password_prohibit_message
@@ -19,7 +19,7 @@ func (o *Hackers) Config_Get(cred p.Ucred, req p.Request_Config_Get) p.Config_En
}
if val != nil {
- return util.New_Config_List([]p.Config{p.Config(*val)})
+ return util.New_Config_List([]p.Config{p.Config{Value:(*val)}})
} else {
return util.Config_Ø{}
}