smbd core dump on usrmgr.exe: PATCH

Simo Sorce simo.sorce at xsec.it
Fri May 16 10:49:20 GMT 2003


Patched thanks

On Fri, 2003-05-16 at 12:20, Alex Deiter wrote:
> I receive core dump at attempt to open properties of the user in usrmgr.exe.
> It occurs, when the user is not a member of any group, i.e. num_groups == 0
> (in rpc_server/srv_util.c )
> 
> patch:
> 
> --- rpc_server/srv_util.c.orig  Fri May 16 13:14:14 2003
> +++ rpc_server/srv_util.c       Fri May 16 14:12:12 2003
> @@ -194,7 +194,7 @@
>                 break;
>         }
> 
> -       free(groups);
> +       if(num_groups) free(groups);
> 
>         /* now check for the user's gid (the primary group rid) */
>         for (i=0; i<cur_rid && grid!=rids[i]; i++)
> 
> Thanks!
-- 
Simo Sorce - simo.sorce at xsec.it
Xsec s.r.l. - http://www.xsec.it
via Durando 10 Ed. G - 20158 - Milano
mobile: +39 329 328 7702
tel. +39 02 2399 7130 - fax: +39 02 700 442 399
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20030516/7ee6d639/attachment.bin


More information about the samba-technical mailing list