]> ruderich.org/simon Gitweb - nsscash/nsscash.git/blobdiff - nss/gr.c
nss: gr/pw: re-used variable
[nsscash/nsscash.git] / nss / gr.c
index cc7f9b0d3b428a48ffafb11b48f626fb3ba91d6a..d8d6d6a1520109b9a94384e5098e816e1618c936 100644 (file)
--- a/nss/gr.c
+++ b/nss/gr.c
@@ -165,7 +165,7 @@ static enum nss_status internal_getgr(struct search_key *key, struct group *resu
         return NSS_STATUS_NOTFOUND;
     }
 
-    const char *e = h->data + h->off_data + *off;
+    const char *e = key->data + *off;
     if (!entry_to_group((struct group_entry *)e, result, buffer, buflen)) {
         unmap_file(&f);
         errno = ERANGE;