Signed-off-by: Jesse Millan --- linux-2.6.12-rc4/fs/cifs/asn1.c~ 2005-05-24 22:25:21.436866468 -0700 +++ linux-2.6.12-rc4/fs/cifs/asn1.c 2005-05-24 22:49:43.744939729 -0700 @@ -160,12 +160,18 @@ asn1_length_decode(struct asn1_ctx *ctx, { unsigned char ch, cnt; - if (!asn1_octet_decode(ctx, &ch)) + if (!asn1_octet_decode(ctx, &ch)) { + /* Function would have returned without initializing 'def' and 'len' */ + *def = 0; + *len = 0; return 0; + } - if (ch == 0x80) + if (ch == 0x80) { *def = 0; - else { + /* Function would have returned without initializing 'len' */ + *len = 0; + } else { *def = 1; if (ch < 0x80)