mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Attempt to fix bug #6386 - Samba Panic triggered by Sophos Control Centre.
Don't indirect a potentially null pointer. Jeremy.
This commit is contained in:
parent
a91bcbccf8
commit
d4d06a4ef9
@ -276,7 +276,7 @@ static bool get_group_map_from_ntname(const char *name, GROUP_MAP *map)
|
|||||||
|
|
||||||
ret = ldb_search(ldb, talloc_tos(), &res, NULL, LDB_SCOPE_SUBTREE,
|
ret = ldb_search(ldb, talloc_tos(), &res, NULL, LDB_SCOPE_SUBTREE,
|
||||||
NULL, "(&(ntName=%s)(objectClass=groupMap))", name);
|
NULL, "(&(ntName=%s)(objectClass=groupMap))", name);
|
||||||
if (ret != LDB_SUCCESS || res->count != 1) {
|
if (ret != LDB_SUCCESS || (res && res->count != 1)) {
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user