git.samba.org
/
npower
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
talloc: pytalloc_get_checked_type: survive non-talloc objects
[npower/samba.git]
/
lib
/
talloc
/
pytalloc_util.c
diff --git
a/lib/talloc/pytalloc_util.c
b/lib/talloc/pytalloc_util.c
index 82b95e7f144fec1f60aa032172e61ca22481c666..4193ca895ce3d2752c8c53802b65be8d984e7e02 100644
(file)
--- a/
lib/talloc/pytalloc_util.c
+++ b/
lib/talloc/pytalloc_util.c
@@
-247,7
+247,7
@@
static void *_pytalloc_get_checked_type(PyObject *py_obj, const char *type_name,
mem_ctx = _pytalloc_get_mem_ctx(py_obj);
ptr = _pytalloc_get_ptr(py_obj);
- if (mem_ctx != ptr) {
+ if (mem_ctx != ptr
|| ptr == NULL
) {
if (check_only) {
return NULL;
}