From 8cd27dc1c33650561325ec5ea108949919e0bb26 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 4 Oct 2006 19:09:32 +0000 Subject: r19070: If there's an error in the data struct, there's no point to continue with asn1_pop_tag. Volker (This used to be commit d18e9f1da9a22aa16860aa2a91e7c788d28d3314) --- source3/libsmb/asn1.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/libsmb/asn1.c') diff --git a/source3/libsmb/asn1.c b/source3/libsmb/asn1.c index dd22051ae7..937e063c62 100644 --- a/source3/libsmb/asn1.c +++ b/source3/libsmb/asn1.c @@ -74,6 +74,10 @@ BOOL asn1_pop_tag(ASN1_DATA *data) struct nesting *nesting; size_t len; + if (data->has_error) { + return False; + } + nesting = data->nesting; if (!nesting) { -- cgit