another bugfix from Alex Deiter <tiamat@komi.mts.ru>
authorSimo Sorce <idra@samba.org>
Fri, 16 May 2003 10:48:58 +0000 (10:48 +0000)
committerSimo Sorce <idra@samba.org>
Fri, 16 May 2003 10:48:58 +0000 (10:48 +0000)
thanks
(This used to be commit 29dc40639fad7652f7f99995be7552f5143ff052)

source3/rpc_server/srv_util.c

index f96ccaef672fac3dd9eadaefc5719e5b4e4ec187..c43eb22375ecfe324e0a7318d7afabaea760aa7e 100644 (file)
@@ -194,7 +194,7 @@ NTSTATUS get_alias_user_groups(TALLOC_CTX *ctx, DOM_SID *sid, int *numgroups, ui
                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++)