git.samba.org
/
autobuild.flakey.sn-devel-184
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3b65ff
)
s4/gensec/py: avoid null deref with bad python arguments
author
Douglas Bagnall
<douglas.bagnall@catalyst.net.nz>
Tue, 9 Jul 2019 10:52:19 +0000
(22:52 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Mon, 22 Jul 2019 22:20:26 +0000
(22:20 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/gensec/pygensec.c
patch
|
blob
|
history
diff --git
a/source4/auth/gensec/pygensec.c
b/source4/auth/gensec/pygensec.c
index 11a1c7bca31ec12a4d04699aea3dc6e8e848fc7c..bc9d6bdcb16767c9b7ce48e03c346d43de44bbe4 100644
(file)
--- a/
source4/auth/gensec/pygensec.c
+++ b/
source4/auth/gensec/pygensec.c
@@
-189,7
+189,7
@@
static PyObject *py_gensec_start_server(PyTypeObject *type, PyObject *args, PyOb
if (!auth_context) {
PyErr_Format(PyExc_TypeError,
"Expected auth.AuthContext for auth_context argument, got %s",
-
talloc_get_name(pytalloc_get_ptr(py_auth_context)
));
+
pytalloc_get_name(py_auth_context
));
return NULL;
}
}