summaryrefslogtreecommitdiff
path: root/libcli/auth
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-05-20 14:30:44 -0700
committerJeremy Allison <jra@samba.org>2010-05-20 14:50:16 -0700
commit2d46e07c47418fdec5239d65032277c7917a44a4 (patch)
tree7e4cf3a33b6502cfeb1b131b0311ed4012c4b47c /libcli/auth
parent8a4525d9fa08959a46afa88e2c785e1bc291b941 (diff)
downloadsamba-2d46e07c47418fdec5239d65032277c7917a44a4.tar.gz
samba-2d46e07c47418fdec5239d65032277c7917a44a4.tar.bz2
samba-2d46e07c47418fdec5239d65032277c7917a44a4.zip
Fix what looks like a cut-and-paste error in our read_negTokenInit() function.
We should never be calling asn1_push_XXX functions inside an asn1 reading function. Change asn1_push_tag() -> asn1_start_tag() and asn1_pop_tag() -> asn1_end_tag(). This allows us to connect to a NetApp filer at the Microsoft plugfest. Andrew PLEASE CHECK ! Jeremy.
Diffstat (limited to 'libcli/auth')
-rw-r--r--libcli/auth/spnego_parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcli/auth/spnego_parse.c b/libcli/auth/spnego_parse.c
index 3f7047b0e0..86b083d805 100644
--- a/libcli/auth/spnego_parse.c
+++ b/libcli/auth/spnego_parse.c
@@ -88,11 +88,11 @@ static bool read_negTokenInit(struct asn1_data *asn1, TALLOC_CTX *mem_ctx,
/* RFC 2478 says we have an Octet String here,
but W2k sends something different... */
char *mechListMIC;
- asn1_push_tag(asn1, ASN1_SEQUENCE(0));
- asn1_push_tag(asn1, ASN1_CONTEXT(0));
+ asn1_start_tag(asn1, ASN1_SEQUENCE(0));
+ asn1_start_tag(asn1, ASN1_CONTEXT(0));
asn1_read_GeneralString(asn1, mem_ctx, &mechListMIC);
- asn1_pop_tag(asn1);
- asn1_pop_tag(asn1);
+ asn1_end_tag(asn1);
+ asn1_end_tag(asn1);
token->targetPrincipal = mechListMIC;
}