mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libcli/auth/krb5_wrap: correctly use discard_const().
Jeremy, please check. Guenther
This commit is contained in:
parent
7da530e1e4
commit
18d3b85c40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user