git.samba.org
/
palcantara
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e09aaa
)
CVE-2020-25719 mit-samba: Handle no DB entry in mit_samba_get_pac()
author
Andreas Schneider
<asn@samba.org>
Mon, 12 Jul 2021 11:58:57 +0000
(13:58 +0200)
committer
Jule Anger
<janger@samba.org>
Mon, 8 Nov 2021 09:52:12 +0000
(10:52 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14561
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/kdc/mit_samba.c
patch
|
blob
|
history
diff --git
a/source4/kdc/mit_samba.c
b/source4/kdc/mit_samba.c
index 6aed31345441544333999ca42e2b0eba5a018ff0..be6ea83c04201efe4c0234804fa4372d50d740d6 100644
(file)
--- a/
source4/kdc/mit_samba.c
+++ b/
source4/kdc/mit_samba.c
@@
-437,6
+437,10
@@
int mit_samba_get_pac(struct mit_samba_context *smb_ctx,
&upn_dns_info_blob);
if (!NT_STATUS_IS_OK(nt_status)) {
talloc_free(tmp_ctx);
+ if (NT_STATUS_EQUAL(nt_status,
+ NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
+ return ENOENT;
+ }
return EINVAL;
}