Lines Matching refs:res
54 struct ldb_result *res = NULL;
86 res = talloc_zero(mem_ctx, struct ldb_result);
87 if (!res) {
91 res->count = msgs_count;
92 res->msgs = talloc_steal(res, msgs);
95 *_res = res;
114 struct ldb_result *res = NULL;
145 res = talloc_zero(mem_ctx, struct ldb_result);
146 if (!res) {
150 res->count = msgs_count;
151 res->msgs = talloc_steal(res, msgs);
154 *_res = res;
177 struct ldb_result *res = NULL;
204 ret = sysdb_getservbyport(tmp_ctx, domain, port, NULL, &res);
208 if (res->count != 1) {
213 for (i = 0; i < res->count; i++) {
217 res->msgs[i]->dn));
219 ret = sysdb_delete_entry(sysdb, res->msgs[i]->dn, true);
224 res->msgs[i]->dn));
232 name = ldb_msg_find_attr_as_string(res->msgs[0],
251 res->msgs[0]->dn));
253 ret = sysdb_delete_entry(sysdb, res->msgs[0]->dn, true);
258 res->msgs[0]->dn));
263 talloc_zfree(res);
270 ret = sysdb_getservbyname(tmp_ctx, domain, primary_name, NULL, &res);
274 for (i = 0; i < res->count; i++) {
278 name = ldb_msg_find_attr_as_string(res->msgs[i],
289 res->msgs[i]->dn));
291 ret = sysdb_delete_entry(sysdb, res->msgs[i]->dn, true);
296 res->msgs[i]->dn));
321 ret = sysdb_delete_entry(sysdb, res->msgs[i]->dn, true);
326 res->msgs[i]->dn));
332 update_dn = talloc_steal(tmp_ctx, res->msgs[i]->dn);
341 res->msgs[i]->dn,
346 talloc_zfree(res);
649 struct ldb_result *res;
668 ret = sysdb_getservbyname(tmp_ctx, domain, name, proto, &res);
676 ret = sysdb_getservbyport(tmp_ctx, domain, port, proto, &res);
689 for (i = 0; i < res->count; i++) {
690 ret = sysdb_delete_entry(sysdb, res->msgs[i]->dn, false);
727 struct ldb_result *res = NULL;
739 res = talloc_zero(mem_ctx, struct ldb_result);
740 if (!res) {
744 res->count = msgs_count;
745 res->msgs = talloc_steal(res, msgs);
748 *_res = res;