summaryrefslogtreecommitdiff
path: root/sss_client
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-06-01 17:01:56 -0400
committerSimo Sorce <ssorce@redhat.com>2009-06-02 09:48:34 -0400
commit587c6d92d871b6888ecda7712a8b78683715c3dd (patch)
tree5bc916df6c975aad3734807d42f9997247f395e6 /sss_client
parent06dad2c128b1541764fe33264888c8c7092757cb (diff)
downloadsssd-587c6d92d871b6888ecda7712a8b78683715c3dd.tar.gz
sssd-587c6d92d871b6888ecda7712a8b78683715c3dd.tar.bz2
sssd-587c6d92d871b6888ecda7712a8b78683715c3dd.zip
Fix nasty bug in rendering the password field
An error introduced with the last tidyup patches would skip the first char of the password field.
Diffstat (limited to 'sss_client')
-rw-r--r--sss_client/passwd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sss_client/passwd.c b/sss_client/passwd.c
index 5239d552..e999e5dd 100644
--- a/sss_client/passwd.c
+++ b/sss_client/passwd.c
@@ -86,8 +86,8 @@ static int sss_nss_getpw_readrep(struct sss_nss_pw_rep *pr,
slen = *len - 8;
dlen = pr->buflen;
- pr->result->pw_name = &(pr->buffer[0]);
i = 0;
+ pr->result->pw_name = &(pr->buffer[i]);
while (slen > i && dlen > 0) {
pr->buffer[i] = sbuf[i];
if (pr->buffer[i] == '\0') break;
@@ -103,7 +103,6 @@ static int sss_nss_getpw_readrep(struct sss_nss_pw_rep *pr,
i++;
dlen--;
- i++;
pr->result->pw_passwd = &(pr->buffer[i]);
while (slen > i && dlen > 0) {
pr->buffer[i] = sbuf[i];