git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc80ff4
)
Fix an uninitialized variable
author
Volker Lendecke
<vl@samba.org>
Sun, 21 Mar 2010 19:59:13 +0000
(20:59 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 21 Mar 2010 20:01:28 +0000
(21:01 +0100)
lib/util/asn1.c
patch
|
blob
|
history
diff --git
a/lib/util/asn1.c
b/lib/util/asn1.c
index 9e3d3eeb93aa0423d530017fe5e05cb875c61405..8f30cfe2c677cfe982636607466ad63f7c77631b 100644
(file)
--- 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)) {