mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
lib: Fix CID 1356315 Dereference before null check
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
3940d4e386
commit
a243a9012f
@ -1628,12 +1628,9 @@ out:
|
||||
if (memcmp(&zero_kt_entry, &kt_entry, sizeof(krb5_keytab_entry))) {
|
||||
smb_krb5_kt_free_entry(context, &kt_entry);
|
||||
}
|
||||
if (keytab) {
|
||||
if (memcmp(&cursor, &zero_csr, sizeof(krb5_kt_cursor)) != 0) {
|
||||
krb5_kt_end_seq_get(context, keytab, &cursor);
|
||||
}
|
||||
if (memcmp(&cursor, &zero_csr, sizeof(krb5_kt_cursor)) != 0) {
|
||||
krb5_kt_end_seq_get(context, keytab, &cursor);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user