X-Git-Url: https://ruderich.org/simon/gitweb/?p=nsscash%2Fnsscash.git;a=blobdiff_plain;f=nss%2Fpw.c;h=c772bb10133e2d7c29feb4565f6327739cb2497e;hp=c7e056666216c1cf7e3143dd5626583d1b22298d;hb=67fb8cb9a157931c94bb420f25c36d55c2876d02;hpb=959bf6db509da88477dc64d40cf04c4def91a7b3 diff --git a/nss/pw.c b/nss/pw.c index c7e0566..c772bb1 100644 --- a/nss/pw.c +++ b/nss/pw.c @@ -151,7 +151,7 @@ static enum nss_status internal_getpw(struct search_key *key, struct passwd *res return NSS_STATUS_NOTFOUND; } - const char *e = h->data + h->off_data + *off; + const char *e = key->data + *off; if (!entry_to_passwd((struct passwd_entry *)e, result, buffer, buflen)) { unmap_file(&f); errno = ERANGE;