s3:clispnego: fix confusing warning in spnego_gen_krb5_wrap()
authorStefan Metzmacher <metze@samba.org>
Thu, 28 Jan 2016 14:50:06 +0000 (15:50 +0100)
committerVolker Lendecke <vl@samba.org>
Mon, 1 Feb 2016 08:53:09 +0000 (09:53 +0100)
commit14f1a94b6fb3a55be1e60fe0d28740f04fd94b3f
tree474c87d1cb79188728728581bab8aeded0507e8c
parent8024f532e6bcb6cbd8179817fafdd0f12929d629
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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/libsmb/clispnego.c