diff options
author | Volker Lendecke <vl@samba.org> | 2010-03-21 20:59:13 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-03-21 21:01:28 +0100 |
commit | 56940a28ff759fb2903891f69dc4bbf5f0789b9f (patch) | |
tree | 0e0ea169734b09710f8f933050d66d2f7bcd9841 /lib | |
parent | fc80ff40025a35a61aa1a0c7666f98b4c0b78924 (diff) | |
download | samba-56940a28ff759fb2903891f69dc4bbf5f0789b9f.tar.gz samba-56940a28ff759fb2903891f69dc4bbf5f0789b9f.tar.bz2 samba-56940a28ff759fb2903891f69dc4bbf5f0789b9f.zip |
Fix an uninitialized variable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/asn1.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)) { |