[Samba] Out of memory error while calling smbc_getxattr().

naga_kishore_kommuri at yahoo.com naga_kishore_kommuri at yahoo.com
Sun Jun 12 23:35:51 MDT 2011


Hi,
I'm using samba 3.2.6 and getting the following error whille calling  smbc_getxattr().

cli_lsa_lookup_sids_noalloc(): out of memory


Here is the relavent code snippet of the function cli_lsa_lookup_sids_noalloc()...


if (dom_idx != 0xffffffff) {

                        dom_name = ref_domains->domains[dom_idx].name.string;
                        name = lsa_names.names[i].name.string;

                        if (name) {
                                (names)[i] = talloc_strdup(mem_ctx, name);
                                if ((names)[i] == NULL) {
                                        DEBUG(0, ("cli_lsa_lookup_sids_noalloc(): out of memory\n"));
                                        result = NT_STATUS_UNSUCCESSFUL;
                                        goto done;
                                }
                        } else {
                                (names)[i] = NULL;
                        }
                        (domains)[i] = talloc_strdup(mem_ctx, dom_name);
                        (types)[i] = lsa_names.names[i].sid_type;
                        if (((domains)[i] == NULL)) {
                                DEBUG(0, ("cli_lsa_lookup_sids_noalloc(): out of memory\n"));
                                result = NT_STATUS_UNSUCCESSFUL;
                                goto done;
                        }

                } else {
                        (names)[i] = NULL;
                        (domains)[i] = NULL;
                        (types)[i] = SID_NAME_UNKNOWN;
                }



Is there any patch for this issue?

thanks,
-Kishore


More information about the samba mailing list