Fix Coverity ID 487
[jra/samba/.git] / source / libads / ldap.c
index 9ec06e5a1d52b6b9a8650a7591355917d57749e9..00d36b7edcb98040fa3648e77753180f0c71fb5e 100644 (file)
@@ -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;
        }