Fix coredump (smb-panic) when list user rights with usrmgr on pre3

Jianliang Lu j.lu at tiesse.com
Fri Nov 28 09:38:23 GMT 2003


This fix will solve the coredump when you call the API "SA_ENUMPRIVSACCOUNT".
Today we have not implemented the privileges, but we should allow the call go 
on.
The problem can be reproduced using the usrmgr.

fix:
---------------------------------------- 
--- lib/privileges.c     Thu Nov 27 15:41:09 2003
+++ lib/privileges.c.orig     Thu Nov 27 10:39:45 2003
@@ -69,9 +69,6 @@
{
    NTSTATUS ret;

-     if (old_la == NULL)
-          return NT_STATUS_OK;
-
    *new_la = (LUID_ATTR *)talloc(mem_ctx, sizeof(LUID_ATTR));
    ALLOC_CHECK(new_la, ret, done, "dupalloc_luid_attr");

-----------------------------------------

cheers,
Jianliang Lu

TieSse s.p.a.     Ivrea (To) - Italy
j.lu at tiesse.com   luj at libero.it
http://www.tiesse.com



More information about the samba-technical mailing list