diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-06-01 17:01:56 -0400 |
---|---|---|
committer | Simo Sorce <ssorce@redhat.com> | 2009-06-02 09:48:34 -0400 |
commit | 587c6d92d871b6888ecda7712a8b78683715c3dd (patch) | |
tree | 5bc916df6c975aad3734807d42f9997247f395e6 | |
parent | 06dad2c128b1541764fe33264888c8c7092757cb (diff) | |
download | sssd-587c6d92d871b6888ecda7712a8b78683715c3dd.tar.gz sssd-587c6d92d871b6888ecda7712a8b78683715c3dd.tar.xz 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.
-rw-r--r-- | sss_client/passwd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sss_client/passwd.c b/sss_client/passwd.c index 5239d5522..e999e5dd5 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]; |