Fix what looks like a cut-and-paste error in our read_negTokenInit() function.
authorJeremy Allison <jra@samba.org>
Thu, 20 May 2010 21:30:44 +0000 (14:30 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 20 May 2010 21:50:16 +0000 (14:50 -0700)
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.

libcli/auth/spnego_parse.c

index 3f7047b0e0bdccd51f2eafd4d60bc8f15f694b34..86b083d805c73c8203e28dc856121ab8c33d8650 100644 (file)
@@ -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;
                        }