summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-10-04 19:09:32 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:07 -0500
commit8cd27dc1c33650561325ec5ea108949919e0bb26 (patch)
tree16374d445be39d5d2a1d0d1e14135ebd4d4e4009 /source3
parent101428b7e5e29d856c7500f8aeae5411c75c037a (diff)
downloadsamba-8cd27dc1c33650561325ec5ea108949919e0bb26.tar.gz
samba-8cd27dc1c33650561325ec5ea108949919e0bb26.tar.bz2
samba-8cd27dc1c33650561325ec5ea108949919e0bb26.zip
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)
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/asn1.c4
1 files changed, 4 insertions, 0 deletions
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) {