1
0
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:
Jeremy Allison 2009-05-21 17:27:25 -07:00
parent a91bcbccf8
commit d4d06a4ef9

View File

@ -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;
} }