diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-10-04 19:09:32 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:07 -0500 |
commit | d18e9f1da9a22aa16860aa2a91e7c788d28d3314 (patch) | |
tree | 9d10c214fc766d59d0badb0577c219a1a42daa8d | |
parent | 6a8937ed03f0ee62eb81da798e0c38b405d44731 (diff) | |
download | samba-d18e9f1da9a22aa16860aa2a91e7c788d28d3314.tar.gz samba-d18e9f1da9a22aa16860aa2a91e7c788d28d3314.tar.xz samba-d18e9f1da9a22aa16860aa2a91e7c788d28d3314.zip |
r19070: If there's an error in the data struct, there's no point to continue with
asn1_pop_tag.
Volker
-rw-r--r-- | source/libsmb/asn1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/libsmb/asn1.c b/source/libsmb/asn1.c index dd22051ae7c..937e063c625 100644 --- a/source/libsmb/asn1.c +++ b/source/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) { |