From 56940a28ff759fb2903891f69dc4bbf5f0789b9f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 21 Mar 2010 20:59:13 +0100 Subject: Fix an uninitialized variable --- lib/util/asn1.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/util') diff --git a/lib/util/asn1.c b/lib/util/asn1.c index 9e3d3eeb93..8f30cfe2c6 100644 --- a/lib/util/asn1.c +++ b/lib/util/asn1.c @@ -600,6 +600,10 @@ static bool _ber_read_OID_String_impl(TALLOC_CTX *mem_ctx, DATA_BLOB blob, tmp_oid = talloc_asprintf_append_buffer(tmp_oid, ".%u", b[0]%40); if (!tmp_oid) goto nomem; + if (bytes_eaten != NULL) { + *bytes_eaten = 0; + } + for(i = 1, v = 0; i < blob.length; i++) { v = (v<<7) | (b[i]&0x7f); if ( ! (b[i] & 0x80)) { -- cgit