diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-01-15 15:00:44 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-01-15 15:00:44 +0000 |
commit | 617d7c0bcd1f000dcb26cce81ab510f5091dbc67 (patch) | |
tree | c7cb3825c966fb02c87be9e8251f3200a5f6a682 /source3 | |
parent | d5aecd18504b5dff341c5187554ae7a5d872e2bc (diff) | |
download | samba-617d7c0bcd1f000dcb26cce81ab510f5091dbc67.tar.gz samba-617d7c0bcd1f000dcb26cce81ab510f5091dbc67.tar.bz2 samba-617d7c0bcd1f000dcb26cce81ab510f5091dbc67.zip |
Fix a segfault in winbindd. Calling getusersids with a SID that results in 0
groups winbind ended up freeing an uninitialised pointer.
Volker
(This used to be commit cd89288e21ba13a9e97c548eccc15cef21a98d07)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_group.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index b31dc92b38..3373e409e9 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -1098,7 +1098,7 @@ enum winbindd_result winbindd_getusersids(struct winbindd_cli_state *state) enum winbindd_result result = WINBINDD_ERROR; unsigned int i; TALLOC_CTX *mem_ctx; - char *ret; + char *ret = NULL; uint32 num_groups; unsigned ofs, ret_size = 0; |