mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3:librpc: Make sure kt_curser and kt_entry are initialized
Found by covscan. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12592 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
1df1d873c8
commit
2f83cfdb90
@ -359,8 +359,8 @@ static krb5_error_code fill_mem_keytab_from_system_keytab(krb5_context krbctx,
|
||||
{
|
||||
krb5_error_code ret = 0;
|
||||
krb5_keytab keytab = NULL;
|
||||
krb5_kt_cursor kt_cursor;
|
||||
krb5_keytab_entry kt_entry;
|
||||
krb5_kt_cursor kt_cursor = { 0, };
|
||||
krb5_keytab_entry kt_entry = { 0, };
|
||||
char *valid_princ_formats[7] = { NULL, NULL, NULL,
|
||||
NULL, NULL, NULL, NULL };
|
||||
char *entry_princ_s = NULL;
|
||||
@ -420,9 +420,6 @@ static krb5_error_code fill_mem_keytab_from_system_keytab(krb5_context krbctx,
|
||||
goto out;
|
||||
}
|
||||
|
||||
ZERO_STRUCT(kt_entry);
|
||||
ZERO_STRUCT(kt_cursor);
|
||||
|
||||
ret = smb_krb5_kt_open_relative(krbctx, NULL, false, &keytab);
|
||||
if (ret) {
|
||||
DEBUG(1, ("smb_krb5_kt_open failed (%s)\n",
|
||||
|
Loading…
Reference in New Issue
Block a user