Changeset 30 for trunk/samba/source/nsswitch/idmap_tdb.c
- Timestamp:
- Apr 25, 2007, 9:44:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/nsswitch/idmap_tdb.c
r1 r30 612 612 *****************************/ 613 613 614 static NTSTATUS idmap_tdb_db_init(struct idmap_domain *dom , const char *compat_params)614 static NTSTATUS idmap_tdb_db_init(struct idmap_domain *dom) 615 615 { 616 616 NTSTATUS ret; … … 646 646 647 647 dom->private_data = ctx; 648 dom->initialized = True; 648 649 649 650 talloc_free(config_option); … … 800 801 int i; 801 802 803 /* make sure we initialized */ 804 if ( ! dom->initialized) { 805 ret = idmap_tdb_db_init(dom); 806 if ( ! NT_STATUS_IS_OK(ret)) { 807 return ret; 808 } 809 } 810 802 811 ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); 803 812 … … 838 847 int i; 839 848 849 /* make sure we initialized */ 850 if ( ! dom->initialized) { 851 ret = idmap_tdb_db_init(dom); 852 if ( ! NT_STATUS_IS_OK(ret)) { 853 return ret; 854 } 855 } 856 840 857 ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context); 841 858 … … 875 892 NTSTATUS ret; 876 893 TDB_DATA ksid, kid, data; 894 895 /* make sure we initialized */ 896 if ( ! dom->initialized) { 897 ret = idmap_tdb_db_init(dom); 898 if ( ! NT_STATUS_IS_OK(ret)) { 899 return ret; 900 } 901 } 877 902 878 903 if (!map || !map->sid) { … … 979 1004 TDB_DATA ksid, kid, data; 980 1005 1006 /* make sure we initialized */ 1007 if ( ! dom->initialized) { 1008 ret = idmap_tdb_db_init(dom); 1009 if ( ! NT_STATUS_IS_OK(ret)) { 1010 return ret; 1011 } 1012 } 1013 981 1014 if (!map || !map->sid) { 982 1015 return NT_STATUS_INVALID_PARAMETER; … … 1155 1188 struct dump_data *data; 1156 1189 NTSTATUS ret = NT_STATUS_OK; 1190 1191 /* make sure we initialized */ 1192 if ( ! dom->initialized) { 1193 ret = idmap_tdb_db_init(dom); 1194 if ( ! NT_STATUS_IS_OK(ret)) { 1195 return ret; 1196 } 1197 } 1157 1198 1158 1199 ctx = talloc_get_type(dom->private_data, struct idmap_tdb_context);
Note: See TracChangeset
for help on using the changeset viewer.