Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/modules/vfs_xattr_tdb.c

    r414 r745  
    1919
    2020#include "includes.h"
     21
     22
    2123#include "librpc/gen_ndr/xattr.h"
    2224#include "librpc/gen_ndr/ndr_xattr.h"
     25
     26
     27
    2328
    2429#undef DBGC_CLASS
     
    4853        blob = data_blob_const(data->dptr, data->dsize);
    4954
    50         ndr_err = ndr_pull_struct_blob(
    51                 &blob, result, NULL, result,
     55        ndr_err = ndr_pull_struct_blob(&blob, result, result,
    5256                (ndr_pull_flags_fn_t)ndr_pull_tdb_xattrs);
    5357
     
    5660                          ndr_errstr(ndr_err)));
    5761                TALLOC_FREE(result);
    58                 return ndr_map_error2ntstatus(ndr_err);;
     62                return ndr_map_error2ntstatus(ndr_err);
    5963        }
    6064
     
    7478        enum ndr_err_code ndr_err;
    7579
    76         ndr_err = ndr_push_struct_blob(
    77                 &blob, mem_ctx, NULL, attribs,
     80        ndr_err = ndr_push_struct_blob(&blob, mem_ctx, attribs,
    7881                (ndr_push_flags_fn_t)ndr_push_tdb_xattrs);
    7982
     
    8184                DEBUG(0, ("ndr_push_tdb_xattrs failed: %s\n",
    8285                          ndr_errstr(ndr_err)));
    83                 return ndr_map_error2ntstatus(ndr_err);;
     86                return ndr_map_error2ntstatus(ndr_err);
    8487        }
    8588
     
    725728                          const char *user)
    726729{
    727         fstring sname;
     730        ;
    728731        int res, snum;
    729732        struct db_context *db;
     
    734737        }
    735738
    736         fstrcpy(sname, service);
    737         snum = find_service(sname);
    738         if (snum == -1) {
     739        snum = find_service(talloc_tos(), service, &sname);
     740        if (snum == -1 || sname == NULL) {
    739741                /*
    740742                 * Should not happen, but we should not fail just *here*.
Note: See TracChangeset for help on using the changeset viewer.