X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e480573a5ff59ce2ae78793427e61b85dce7eef1..11db4a3e1d499a2e2da4cf312db1655eb0f055fc:/stglibs/smux.lib/ber_tlv_length.c?ds=inline diff --git a/stglibs/smux.lib/ber_tlv_length.c b/stglibs/smux.lib/ber_tlv_length.c index b87e75e0..32aa5e54 100644 --- a/stglibs/smux.lib/ber_tlv_length.c +++ b/stglibs/smux.lib/ber_tlv_length.c @@ -78,7 +78,6 @@ ssize_t ber_skip_length(asn_codec_ctx_t *opt_codec_ctx, int _is_constructed, const void *ptr, size_t size) { ber_tlv_len_t vlen; /* Length of V in TLV */ - ssize_t tl; /* Length of L in TLV */ ssize_t ll; /* Length of L in TLV */ size_t skip; @@ -112,7 +111,7 @@ ber_skip_length(asn_codec_ctx_t *opt_codec_ctx, ber_tlv_tag_t tag; /* Fetch the tag */ - tl = ber_fetch_tag(ptr, size, &tag); + ssize_t tl = ber_fetch_tag(ptr, size, &tag); if(tl <= 0) return tl; ll = ber_skip_length(opt_codec_ctx,