FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 06-28-2012, 07:58 PM
Ryan McCabe
 
Default rgmanager: Fix a possible NULL pointer dereference

Fix a NULL pointer dereference that could happen when cman_get_node_count()
returns 0 with errno set to EINTR.

Possibly resolves rhbz#820632

Signed-off-by: Ryan McCabe <rmccabe@redhat.com>
---
rgmanager/src/clulib/members.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/rgmanager/src/clulib/members.c b/rgmanager/src/clulib/members.c
index f705297..72f4529 100644
--- a/rgmanager/src/clulib/members.c
+++ b/rgmanager/src/clulib/members.c
@@ -367,8 +367,10 @@ get_member_list(cman_handle_t h)

do {
++tries;
- if (nodes)
+ if (nodes) {
free(nodes);
+ nodes = NULL;
+ }

c = cman_get_node_count(h);
if (c <= 0) {
--
1.7.10.2
 

Thread Tools




All times are GMT. The time now is 11:03 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org