summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-23 11:45:41 +0200
committerGünther Deschner <gd@samba.org>2008-10-23 11:46:18 +0200
commit8a3bff343a21bc8b4c229bae5830db7462fea25f (patch)
tree4b3f5930894da17bdf69e430f332b56dc0f3b4af /source3/libsmb
parentb7c38abe27e7f5a0823f8dacff51b1724426314c (diff)
downloadsamba-8a3bff343a21bc8b4c229bae5830db7462fea25f.tar.gz
samba-8a3bff343a21bc8b4c229bae5830db7462fea25f.tar.bz2
samba-8a3bff343a21bc8b4c229bae5830db7462fea25f.zip
s3-build: fix another build warning with the new ASN1 code.
Guenther
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/spnego.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/spnego.c b/source3/libsmb/spnego.c
index 72559cdeae..ee2c3c3d5a 100644
--- a/source3/libsmb/spnego.c
+++ b/source3/libsmb/spnego.c
@@ -185,10 +185,13 @@ static bool read_negTokenTarg(ASN1_DATA *asn1, negTokenTarg_t *token)
asn1_end_tag(asn1);
asn1_end_tag(asn1);
break;
- case ASN1_CONTEXT(1):
+ case ASN1_CONTEXT(1): {
+ const char *mech = NULL;
asn1_start_tag(asn1, ASN1_CONTEXT(1));
- asn1_read_OID(asn1, NULL, &token->supportedMech);
+ asn1_read_OID(asn1, NULL, &mech);
asn1_end_tag(asn1);
+ token->supportedMech = CONST_DISCARD(char *, mech);
+ }
break;
case ASN1_CONTEXT(2):
asn1_start_tag(asn1, ASN1_CONTEXT(2));