diff options
author | Volker Lendecke <vl@samba.org> | 2010-11-27 19:02:33 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-11-27 19:11:03 +0100 |
commit | a642cb5a927f72acedf1efd7e79b1051c6ce38d5 (patch) | |
tree | 0ac4cbef65437052086dfbc082aabbd165268fc6 /nsswitch | |
parent | 3b71f5df0328ef2c49a76504b6b79a4e726234f0 (diff) | |
download | samba-a642cb5a927f72acedf1efd7e79b1051c6ce38d5.tar.gz samba-a642cb5a927f72acedf1efd7e79b1051c6ce38d5.tar.bz2 samba-a642cb5a927f72acedf1efd7e79b1051c6ce38d5.zip |
libwbclient: Fix a division by zero
If wbinfo -r returns no groups, wbcAllocateMemory divides by zero
Diffstat (limited to 'nsswitch')
-rw-r--r-- | nsswitch/libwbclient/wbc_pwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/libwbclient/wbc_pwd.c b/nsswitch/libwbclient/wbc_pwd.c index 1527808d88..abd03d7455 100644 --- a/nsswitch/libwbclient/wbc_pwd.c +++ b/nsswitch/libwbclient/wbc_pwd.c @@ -605,7 +605,7 @@ wbcErr wbcGetGroups(const char *account, BAIL_ON_WBC_ERROR(wbc_status); groups = (gid_t *)wbcAllocateMemory( - sizeof(gid_t), response.data.num_entries, NULL); + response.data.num_entries, sizeof(gid_t), NULL); BAIL_ON_PTR_ERROR(groups, wbc_status); for (i = 0; i < response.data.num_entries; i++) { |