summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-04-22 09:41:52 +0200
committerVolker Lendecke <vl@samba.org>2011-04-22 10:06:36 +0200
commit4981adcca37391b6745f10f5849fedd7c944410d (patch)
treefb5d981a3bf72a3802d34dbc2b7e343196c6969e /lib
parent3e8a8fad59cfdd053ad96afc39ea7d6e98b91764 (diff)
downloadsamba-4981adcca37391b6745f10f5849fedd7c944410d.tar.gz
samba-4981adcca37391b6745f10f5849fedd7c944410d.tar.bz2
samba-4981adcca37391b6745f10f5849fedd7c944410d.zip
asn1: Fix Coverity ID 2299, CHECKED_RETURN
Diffstat (limited to 'lib')
-rw-r--r--lib/util/asn1.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/util/asn1.c b/lib/util/asn1.c
index f4a6bc5933..b716da63c0 100644
--- a/lib/util/asn1.c
+++ b/lib/util/asn1.c
@@ -290,7 +290,11 @@ bool ber_write_partial_OID_String(TALLOC_CTX *mem_ctx, DATA_BLOB *blob, const ch
/* Add partially encoded sub-identifier */
if (p) {
DATA_BLOB tmp_blob = strhex_to_data_blob(tmp_ctx, p);
- data_blob_append(mem_ctx, blob, tmp_blob.data, tmp_blob.length);
+ if (!data_blob_append(mem_ctx, blob, tmp_blob.data,
+ tmp_blob.length)) {
+ talloc_free(tmp_ctx);
+ return false;
+ }
}
talloc_free(tmp_ctx);