]> git.ipfire.org Git - thirdparty/glibc.git/commit
nss_db: Fix initialization of iteration position [BZ #20237]
authorFlorian Weimer <fweimer@redhat.com>
Sat, 11 Jun 2016 10:12:56 +0000 (12:12 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Sat, 11 Jun 2016 10:12:56 +0000 (12:12 +0200)
commit31d0a4fa646db8b8c97ce24e0ec0a7b73de4fca1
tree205fe71bd6bb121d6425ede7adcc27da05447fe5
parent073f82140c7dbd7af387153c29ac7ac3e882c4ef
nss_db: Fix initialization of iteration position [BZ #20237]

When get*ent is called without a preceding set*ent, we need
to set the initial iteration position in get*ent.

Reproducer: Add “services: db files” to /etc/nsswitch.conf, then run
“perl -e getservent”.  It will segfault before this change, and exit
silently after it.
ChangeLog
nss/nss_db/db-XXX.c