mirror of
https://github.com/samba-team/samba.git
synced 2025-01-22 22:04:08 +03:00
lib: Fix CID 1272834 Unchecked return value
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
72f1a2a0af
commit
cccec44842
@ -940,7 +940,9 @@ bool asn1_read_enumerated(struct asn1_data *data, int *v)
|
||||
if (!asn1_start_tag(data, ASN1_ENUMERATED)) return false;
|
||||
while (!data->has_error && asn1_tag_remaining(data)>0) {
|
||||
uint8_t b;
|
||||
asn1_read_uint8(data, &b);
|
||||
if (!asn1_read_uint8(data, &b)) {
|
||||
return false;
|
||||
}
|
||||
*v = (*v << 8) + b;
|
||||
}
|
||||
return asn1_end_tag(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user