if (ent->netgroup) __internal_endnetgrent (&ent->netgrdata);
internal_endpwent (ent_t *ent){  if (ent->stream != NULL)    {      fclose (ent->stream);      ent->stream = NULL;    }  ent->nis = ent->first = ent->netgroup = 0;  if (ent->oldkey != NULL)    {      free (ent->oldkey);      ent->oldkey = NULL;      ent->oldkeylen = 0;    }  if (ent->result != NULL)    {      nis_freeresult (ent->result);      ent->result = NULL;    }  ent->blacklist.current = 0;  if (ent->blacklist.data != NULL)    ent->blacklist.data[0] = '\0';  give_pwd_free (&ent->pwd);  return NSS_STATUS_SUCCESS;}