Commit dfdd46c7 authored by Pau Espin Pedrol's avatar Pau Espin Pedrol Committed by Mouse

aper: Fix SET_OF_encode_aper wrongly ending in failure path

parent adeec886
......@@ -81,7 +81,7 @@ SET_OF_encode_aper(const asn_TYPE_descriptor_t *td,
break;
}
}
if(need_eom && aper_put_length(po, -1, 0, 0))
if(need_eom && (aper_put_length(po, -1, 0, 0) < 0))
ASN__ENCODE_FAILED; /* End of Message length */
}
......
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