Catching up with old patches. Add define for VERITAS quota support.
authorJeremy Allison <jra@samba.org>
Mon, 30 Dec 2002 23:55:53 +0000 (23:55 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 30 Dec 2002 23:55:53 +0000 (23:55 +0000)
Check return in ldap.
Jeremy.

source/include/includes.h
source/libads/ldap.c

index b7aa70047958fa4202d5896b5a7649b306901ece..58f1565d80a9883bb60148b46e2ee7074315b432 100644 (file)
@@ -1177,5 +1177,13 @@ time_t timegm(struct tm *tm);
 #define strlen(x) valgrind_strlen(x)
 #endif
 
+/*
+ * Veritas File System.  Often in addition to native.
+ * Quotas different.
+ */
+#if defined(HAVE_SYS_FS_VX_QUOTA_H)
+#define VXFS_QUOTA
+#endif
+
 #endif /* _INCLUDES_H */
 
index 97ccf76983a0936345aa7f835f6419132a8a3abb..1ed1da0b5d0a308d011cfea4fcd65e99ce3b8dd1 100644 (file)
@@ -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;