diff options
-rw-r--r-- | source4/libcli/auth/spnego.h | 1 | ||||
-rw-r--r-- | source4/libcli/auth/spnego_parse.c | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/auth/spnego.h b/source4/libcli/auth/spnego.h index decd79e107..926cb7f88d 100644 --- a/source4/libcli/auth/spnego.h +++ b/source4/libcli/auth/spnego.h @@ -45,6 +45,7 @@ struct spnego_negTokenInit { int reqFlags; DATA_BLOB mechToken; DATA_BLOB mechListMIC; + char *targetPrincipal; }; struct spnego_negTokenTarg { diff --git a/source4/libcli/auth/spnego_parse.c b/source4/libcli/auth/spnego_parse.c index b239a4ebf0..d32fd65c4d 100644 --- a/source4/libcli/auth/spnego_parse.c +++ b/source4/libcli/auth/spnego_parse.c @@ -95,9 +95,7 @@ static BOOL read_negTokenInit(ASN1_DATA *asn1, struct spnego_negTokenInit *token asn1_pop_tag(asn1); asn1_pop_tag(asn1); - token->mechListMIC = - data_blob(mechListMIC, strlen(mechListMIC)); - SAFE_FREE(mechListMIC); + token->targetPrincipal = mechListMIC; } asn1_end_tag(asn1); break; @@ -355,6 +353,7 @@ BOOL spnego_free_data(struct spnego_data *spnego) } data_blob_free(&spnego->negTokenInit.mechToken); data_blob_free(&spnego->negTokenInit.mechListMIC); + SAFE_FREE(spnego->negTokenInit.targetPrincipal); break; case SPNEGO_NEG_TOKEN_TARG: if (spnego->negTokenTarg.supportedMech) { |