Commit b02145b2 authored by Lev Walkin's avatar Lev Walkin

stck initialized later

parent 7e0ab882
...@@ -213,9 +213,7 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx, ...@@ -213,9 +213,7 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
* Complex operation, requires stack of expectations. * Complex operation, requires stack of expectations.
*/ */
ctx->ptr = _new_stack(); ctx->ptr = _new_stack();
if(ctx->ptr) { if(!ctx->ptr) {
stck = (struct _stack *)ctx->ptr;
} else {
RETURN(RC_FAIL); RETURN(RC_FAIL);
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment