summaryrefslogtreecommitdiff
path: root/nss_tacplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss_tacplus.c')
-rw-r--r--nss_tacplus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nss_tacplus.c b/nss_tacplus.c
index 82d5902..7a632cd 100644
--- a/nss_tacplus.c
+++ b/nss_tacplus.c
@@ -260,7 +260,8 @@ static int nss_tacplus_config(int *errnop, const char *cfile, int top)
tac_srv[tac_srv_no].addr = server;
/* use current key, if our index not yet set */
if(tac_key_no && !tac_srv[tac_srv_no].key)
- tac_srv[tac_srv_no].key = tac_srv[tac_key_no-1].key;
+ tac_srv[tac_srv_no].key =
+ strdup(tac_srv[tac_key_no-1].key);
tac_srv_no++;
}
}