Fix Coverity ID 487
authorVolker Lendecke <vl@samba.org>
Sun, 23 Mar 2008 18:26:35 +0000 (19:26 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 23 Mar 2008 18:44:55 +0000 (19:44 +0100)
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;
        }