tags 472814 + patch
thanks

I had a look at the source, and the problem seem to be the use of
realloc() when processing uniqueMember.  A realloc() is done and its
return value checked, but 'buf' is never updated with the new pointer
if the realloc() worked.

This patch should solve the issue:

Index: nslcd/group.c
===================================================================
--- nslcd/group.c       (revision 642)
+++ nslcd/group.c       (working copy)
@@ -219,6 +219,7 @@
           log_log(LOG_CRIT,"get_members(): realloc() failed to allocate 
memory");
           return NULL;
         }
+        buf=nw;
       }
       /* check the value */
       if (values[i][0]=='\0')

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to