summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-02 11:17:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:18 -0500
commitacc9f59c7f3bdaa5be20f7c46e9e1a9eaa21192a (patch)
tree44f01da4b6c5f1cf07e87437c8d456c4e0915418 /source4/libcli
parentc5e4c834648fd7639d9024f15f4e4f8163340581 (diff)
downloadsamba-acc9f59c7f3bdaa5be20f7c46e9e1a9eaa21192a.tar.gz
samba-acc9f59c7f3bdaa5be20f7c46e9e1a9eaa21192a.tar.bz2
samba-acc9f59c7f3bdaa5be20f7c46e9e1a9eaa21192a.zip
r3476: fixed some const warnings
(This used to be commit 7dc58dc01e19b342df76dcc14ee28ff37a8f9ace)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/auth/spnego_parse.c2
-rw-r--r--source4/libcli/util/asn1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/auth/spnego_parse.c b/source4/libcli/auth/spnego_parse.c
index f9385ed96e..825b0a78d2 100644
--- a/source4/libcli/auth/spnego_parse.c
+++ b/source4/libcli/auth/spnego_parse.c
@@ -359,7 +359,7 @@ BOOL spnego_free_data(struct spnego_data *spnego)
break;
case SPNEGO_NEG_TOKEN_TARG:
if (spnego->negTokenTarg.supportedMech) {
- talloc_free(spnego->negTokenTarg.supportedMech);
+ talloc_free(discard_const(spnego->negTokenTarg.supportedMech));
}
data_blob_free(&spnego->negTokenTarg.responseToken);
data_blob_free(&spnego->negTokenTarg.mechListMIC);
diff --git a/source4/libcli/util/asn1.c b/source4/libcli/util/asn1.c
index 15858f4f75..2bf29f9161 100644
--- a/source4/libcli/util/asn1.c
+++ b/source4/libcli/util/asn1.c
@@ -534,7 +534,7 @@ BOOL asn1_check_OID(struct asn1_data *data, const char *OID)
data->has_error = True;
return False;
}
- talloc_free(id);
+ talloc_free(discard_const(id));
return True;
}