s3:clispnego: fix confusing warning in spnego_gen_krb5_wrap()
commit62e5169cd7666c0c14eb0a4f256642d9f5f6f1ac
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Jan 2016 14:50:06 +0000 (28 15:50 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Mar 2016 14:24:30 +0000 (29 16:24 +0200)
tree26c44f0365dfd1992a6d7786245d468c183d5e51
parent5bbf46e2045229c4f09c1a7ce8a2b730af16b7c4
s3:clispnego: fix confusing warning in spnego_gen_krb5_wrap()

asn1_extract_blob() stops further asn1 processing by setting has_error.

Don't call asn1_has_error() after asn1_extract_blob() has been successful
otherwise we get an "Failed to build krb5 wrapper at" message
on success.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11702

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11804

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 14f1a94b6fb3a55be1e60fe0d28740f04fd94b3f)
(cherry picked from commit c17b1f697c388bd2e0190c4a3574d951b8be483e)
source3/libsmb/clispnego.c