summaryrefslogtreecommitdiff
path: root/src/nshd/hackers_git/db_config.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/nshd/hackers_git/db_config.go')
-rw-r--r--src/nshd/hackers_git/db_config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nshd/hackers_git/db_config.go b/src/nshd/hackers_git/db_config.go
index 9ed978f..5ef4fe6 100644
--- a/src/nshd/hackers_git/db_config.go
+++ b/src/nshd/hackers_git/db_config.go
@@ -10,7 +10,9 @@ func (o *Hackers) Config_Get(cred p.Ucred, req p.Request_Config_Get) p.Config_En
switch req {
case p.NSLCD_CONFIG_PAM_PASSWORD_PROHIBIT_MESSAGE:
- val = &o.pam_password_prohibit_message
+ if o.cfg.Pam_password_prohibit_message != "" {
+ val = &o.cfg.Pam_password_prohibit_message
+ }
}
if val != nil {