1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r2540: Fix it the way Henrik Nordstrom (the patch author) wants :-).

Jeremy.
(This used to be commit 45707b5700f8a7c422fca2d7c95f9fab50740f35)
This commit is contained in:
Jeremy Allison 2004-09-22 23:27:20 +00:00 committed by Gerald (Jerry) Carter
parent 2da3d6d5aa
commit cf32220e41

View File

@ -23,10 +23,6 @@
#include "winbind_client.h"
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))
#endif
/* Maximum number of users to pass back over the unix domain socket
per call. This is not a static limit on the total number of users
or groups returned in total. */
@ -852,7 +848,9 @@ _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
if (*size == limit) {
goto done;
}
newsize = MIN(newsize, limit);
if (newsize > limit) {
newsize = limit;
}
}
newgroups = realloc((*groups), newsize * sizeof(**groups));