The branch, master has been updated
       via  56940a2... Fix an uninitialized variable
      from  fc80ff4... s3: Fix bug 7202 for multi-threaded applications

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 56940a28ff759fb2903891f69dc4bbf5f0789b9f
Author: Volker Lendecke <[email protected]>
Date:   Sun Mar 21 20:59:13 2010 +0100

    Fix an uninitialized variable

-----------------------------------------------------------------------

Summary of changes:
 lib/util/asn1.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/lib/util/asn1.c b/lib/util/asn1.c
index 9e3d3ee..8f30cfe 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)) {


-- 
Samba Shared Repository

Reply via email to