Bug 741

Summary: initgroups bugs
Product: glibc Reporter: Roland McGrath <roland>
Component: nscdAssignee: Roland McGrath <roland>
Status: RESOLVED FIXED    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: 2.3.4   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 724    

Description Roland McGrath 2005-02-16 04:52:22 UTC
This trunk change is needed on the 2.3 branch.

2005-02-07  Jakub Jelinek  <jakub@redhat.com>

	* nscd/nscd.c (termination_handler): Avoid segfault if some database
	is not enabled.

	* nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
	__nss_not_use_nscd_hosts and return -1.
	* nscd/nscd_initgroups.c (__nscd_getgrouplist): If
	initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
	Avoid leaking sockets.
Comment 1 Sourceware Commits 2005-02-16 11:29:59 UTC
Subject: Bug 741

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_3-branch
Changes by:	roland@sources.redhat.com	2005-02-16 11:29:43

Modified files:
	nscd           : nscd.c 

Log message:
	2005-02-07  Jakub Jelinek  <jakub@redhat.com>
	
	[BZ #741]
	* nscd/nscd.c (termination_handler): Avoid segfault if some database
	is not enabled.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nscd/nscd.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.42.2.1&r2=1.42.2.2

Comment 2 Sourceware Commits 2005-02-16 11:30:04 UTC
Subject: Bug 741

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_3-branch
Changes by:	roland@sources.redhat.com	2005-02-16 11:29:48

Modified files:
	nscd           : nscd_getai.c nscd_initgroups.c 

Log message:
	2005-02-07  Jakub Jelinek  <jakub@redhat.com>
	
	[BZ #741]
	* nscd/nscd_getai.c (__nscd_getai): If ai_resp->found == -1, set
	__nss_not_use_nscd_hosts and return -1.
	* nscd/nscd_initgroups.c (__nscd_getgrouplist): If
	initgr_resp->found == -1, set __nss_not_use_nscd_group and return -1.
	Avoid leaking sockets.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nscd/nscd_getai.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.9&r2=1.9.2.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/nscd/nscd_initgroups.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.7&r2=1.7.2.1

Comment 3 Roland McGrath 2005-04-05 23:59:26 UTC
These changes are in the 2.3 branch as well as the trunk now.