mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r7780: fixed a bug in talloc_find_parent_byname()
This commit is contained in:
parent
b0ad505510
commit
ee3fe42fb1
@ -1127,7 +1127,7 @@ void *talloc_find_parent_byname(const void *context, const char *name)
|
||||
while (tc->parent && (!tc->name || strcmp(tc->name, name))) {
|
||||
tc = tc->parent;
|
||||
}
|
||||
if (tc == NULL) {
|
||||
if (tc == NULL || tc->name == NULL || strcmp(tc->name, name)) {
|
||||
return NULL;
|
||||
}
|
||||
return (void *)(tc+1);
|
||||
|
Loading…
Reference in New Issue
Block a user