Changeset 745 for trunk/server/source3/modules/vfs_xattr_tdb.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
source3/modules/vfs_xattr_tdb.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/modules/vfs_xattr_tdb.c
r414 r745 19 19 20 20 #include "includes.h" 21 22 21 23 #include "librpc/gen_ndr/xattr.h" 22 24 #include "librpc/gen_ndr/ndr_xattr.h" 25 26 27 23 28 24 29 #undef DBGC_CLASS … … 48 53 blob = data_blob_const(data->dptr, data->dsize); 49 54 50 ndr_err = ndr_pull_struct_blob( 51 &blob, result, NULL, result, 55 ndr_err = ndr_pull_struct_blob(&blob, result, result, 52 56 (ndr_pull_flags_fn_t)ndr_pull_tdb_xattrs); 53 57 … … 56 60 ndr_errstr(ndr_err))); 57 61 TALLOC_FREE(result); 58 return ndr_map_error2ntstatus(ndr_err); ;62 return ndr_map_error2ntstatus(ndr_err); 59 63 } 60 64 … … 74 78 enum ndr_err_code ndr_err; 75 79 76 ndr_err = ndr_push_struct_blob( 77 &blob, mem_ctx, NULL, attribs, 80 ndr_err = ndr_push_struct_blob(&blob, mem_ctx, attribs, 78 81 (ndr_push_flags_fn_t)ndr_push_tdb_xattrs); 79 82 … … 81 84 DEBUG(0, ("ndr_push_tdb_xattrs failed: %s\n", 82 85 ndr_errstr(ndr_err))); 83 return ndr_map_error2ntstatus(ndr_err); ;86 return ndr_map_error2ntstatus(ndr_err); 84 87 } 85 88 … … 725 728 const char *user) 726 729 { 727 fstring sname;730 ; 728 731 int res, snum; 729 732 struct db_context *db; … … 734 737 } 735 738 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) { 739 741 /* 740 742 * Should not happen, but we should not fail just *here*.
Note:
See TracChangeset
for help on using the changeset viewer.
