stck initialized later

This commit is contained in:
Lev Walkin 2017-06-28 08:52:07 -07:00
parent 7e0ab8821d
commit b02145b206
1 changed files with 1 additions and 3 deletions

View File

@ -213,9 +213,7 @@ OCTET_STRING_decode_ber(asn_codec_ctx_t *opt_codec_ctx,
* Complex operation, requires stack of expectations.
*/
ctx->ptr = _new_stack();
if(ctx->ptr) {
stck = (struct _stack *)ctx->ptr;
} else {
if(!ctx->ptr) {
RETURN(RC_FAIL);
}
} else {