summaryrefslogtreecommitdiffstats
path: root/source/libads
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-12-30 23:55:58 +0000
committerJeremy Allison <jra@samba.org>2002-12-30 23:55:58 +0000
commite789edbb287319f52f49f2999917a610565144d9 (patch)
treedb9f57222a525caf43975b67ca45e8c8277a092b /source/libads
parent1eff36ff2fd20ff1844800acefb31972ad865527 (diff)
downloadsamba-e789edbb287319f52f49f2999917a610565144d9.tar.gz
samba-e789edbb287319f52f49f2999917a610565144d9.tar.xz
samba-e789edbb287319f52f49f2999917a610565144d9.zip
Catching up with old patches. Add define for VERITAS quota support.
Check return in ldap. Jeremy.
Diffstat (limited to 'source/libads')
-rw-r--r--source/libads/ldap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index 97ccf76983a..1ed1da0b5d0 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -326,6 +326,8 @@ static struct berval *dup_berval(TALLOC_CTX *ctx, const struct berval *in_val)
if (!in_val) return NULL;
value = talloc_zero(ctx, sizeof(struct berval));
+ if (value == NULL)
+ return NULL;
if (in_val->bv_len == 0) return value;
value->bv_len = in_val->bv_len;