svn commit: samba r19896 - in
branches/SAMBA_3_0/source/lib/ldb/tools: .
vlendec at samba.org
vlendec at samba.org
Sat Nov 25 16:55:12 GMT 2006
Author: vlendec
Date: 2006-11-25 16:55:11 +0000 (Sat, 25 Nov 2006)
New Revision: 19896
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19896
Log:
Fix klokwork id 2279
Modified:
branches/SAMBA_3_0/source/lib/ldb/tools/cmdline.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/ldb/tools/cmdline.c
===================================================================
--- branches/SAMBA_3_0/source/lib/ldb/tools/cmdline.c 2006-11-25 16:53:56 UTC (rev 19895)
+++ branches/SAMBA_3_0/source/lib/ldb/tools/cmdline.c 2006-11-25 16:55:11 UTC (rev 19896)
@@ -275,7 +275,11 @@
}
ctrl[i]->oid = LDB_CONTROL_VLV_REQ_OID;
ctrl[i]->critical = crit;
- control = talloc(ctrl[i], struct ldb_vlv_req_control);
+ if (!(control = talloc(ctrl[i],
+ struct ldb_vlv_req_control))) {
+ fprintf(stderr, "talloc failed\n");
+ return NULL;
+ }
control->beforeCount = bc;
control->afterCount = ac;
if (attr[0]) {
More information about the samba-cvs
mailing list