1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

libcli/auth/krb5_wrap: correctly use discard_const().

Jeremy, please check.

Guenther
This commit is contained in:
Günther Deschner 2011-05-13 00:09:48 +02:00
parent 7da530e1e4
commit 18d3b85c40

View File

@ -205,8 +205,8 @@ krb5_error_code smb_krb5_unparse_name(TALLOC_CTX *mem_ctx,
for (i = 0; i < len1; i++) {
p1 = krb5_princ_component(context, discard_const(krb5_principal, princ1), i);
p2 = krb5_princ_component(context, discard_const(krb5_principal, princ2), i);
p1 = krb5_princ_component(context, (krb5_principal)discard_const(princ1), i);
p2 = krb5_princ_component(context, (krb5_principal)discard_const(princ2), i);
if (p1->length != p2->length || memcmp(p1->data, p2->data, p1->length))
return False;