mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
use ZERO_STRUCT() instead of memset
(This used to be commit 0820840423
)
This commit is contained in:
parent
2cfc19f899
commit
1d008cd2cb
@ -255,7 +255,7 @@ static krb5_error_code ads_krb5_mk_req(krb5_context context,
|
||||
}
|
||||
|
||||
/* obtain ticket & session key */
|
||||
memset((char *)&creds, 0, sizeof(creds));
|
||||
ZERO_STRUCT(creds);
|
||||
if ((retval = krb5_copy_principal(context, server, &creds.server))) {
|
||||
DEBUG(1,("krb5_copy_principal failed (%s)\n",
|
||||
error_message(retval)));
|
||||
|
Loading…
Reference in New Issue
Block a user