mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
r19895: Fix klokwork id 2278
This commit is contained in:
parent
4b075f347b
commit
8ccff6a4dd
@ -269,7 +269,10 @@ struct ldb_control **parse_controls(void *mem_ctx, char **control_strings)
|
||||
fprintf(stderr, " note: b = boolean, n = number, s = string, o = b64 binary blob\n");
|
||||
return NULL;
|
||||
}
|
||||
ctrl[i] = talloc(ctrl, struct ldb_control);
|
||||
if (!(ctrl[i] = talloc(ctrl, struct ldb_control))) {
|
||||
fprintf(stderr, "talloc failed\n");
|
||||
return NULL;
|
||||
}
|
||||
ctrl[i]->oid = LDB_CONTROL_VLV_REQ_OID;
|
||||
ctrl[i]->critical = crit;
|
||||
control = talloc(ctrl[i], struct ldb_vlv_req_control);
|
||||
|
Loading…
x
Reference in New Issue
Block a user