git.samba.org
/
jra
/
samba
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Coverity ID 487
[jra/samba/.git]
/
source
/
libads
/
ldap.c
diff --git
a/source/libads/ldap.c
b/source/libads/ldap.c
index 9ec06e5a1d52b6b9a8650a7591355917d57749e9..00d36b7edcb98040fa3648e77753180f0c71fb5e 100644
(file)
--- a/
source/libads/ldap.c
+++ b/
source/libads/ldap.c
@@
-3413,6
+3413,7
@@
ADS_STATUS ads_find_samaccount(ADS_STRUCT *ads,
filter = talloc_asprintf(mem_ctx, "(&(objectclass=user)(sAMAccountName=%s))",
samaccountname);
if (filter == NULL) {
+ status = ADS_ERROR_NT(NT_STATUS_NO_MEMORY);
goto out;
}