1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

r1723: Make sure we bail out on error in reading a OID.

Andrew Bartlett
(This used to be commit 6da7b65851aa4932aab56d1ab0f8fc67ccb62cdf)
This commit is contained in:
Andrew Bartlett 2004-08-11 16:09:54 +00:00 committed by Gerald (Jerry) Carter
parent fb4c7e8a16
commit 8ed563cfbb

View File

@ -354,7 +354,7 @@ BOOL asn1_read_OID(ASN1_DATA *data, char **OID)
oid = talloc_asprintf(mem_ctx, "%u", b/40);
oid = talloc_asprintf_append(mem_ctx, oid, " %u", b%40);
while (asn1_tag_remaining(data) > 0) {
while (!data->has_error && asn1_tag_remaining(data) > 0) {
uint_t v = 0;
do {
asn1_read_uint8(data, &b);