git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7c38ab
)
s3-build: fix another build warning with the new ASN1 code.
author
Günther Deschner
<gd@samba.org>
Thu, 23 Oct 2008 09:45:41 +0000
(11:45 +0200)
committer
Günther Deschner
<gd@samba.org>
Thu, 23 Oct 2008 09:46:18 +0000
(11:46 +0200)
Guenther
source3/libsmb/spnego.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/spnego.c
b/source3/libsmb/spnego.c
index 72559cdeae254353c6a9864d514c12aeee36f70b..ee2c3c3d5a7ac646b8641a6a832f88004334feb8 100644
(file)
--- 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->supportedM
ech);
+ asn1_read_OID(asn1, NULL, &
m
ech);
asn1_end_tag(asn1);
+ token->supportedMech = CONST_DISCARD(char *, mech);
+ }
break;
case ASN1_CONTEXT(2):
asn1_start_tag(asn1, ASN1_CONTEXT(2));