1 |
vip-ire |
1.1 |
diff -up cpu-1.4.3/src/plugins/ldap/ld.c.empty-attr cpu-1.4.3/src/plugins/ldap/ld.c |
2 |
|
|
--- cpu-1.4.3/src/plugins/ldap/ld.c.empty-attr 2010-11-05 21:18:12.000000000 -0600 |
3 |
|
|
+++ cpu-1.4.3/src/plugins/ldap/ld.c 2010-11-05 21:19:48.000000000 -0600 |
4 |
|
|
@@ -282,7 +282,10 @@ ldapBuildListStr (int mod_op, char *mod_ |
5 |
|
|
{ |
6 |
|
|
char **temp; |
7 |
|
|
|
8 |
|
|
- if (value == NULL) |
9 |
|
|
+ if (mod_type == NULL || strlen(mod_type) == strspn(mod_type, " ")) |
10 |
|
|
+ return mods; |
11 |
|
|
+ |
12 |
|
|
+ if (value == NULL || strlen(value) == strspn(value, " ")) |
13 |
|
|
return mods; |
14 |
|
|
|
15 |
|
|
mods = ldapAddList (mods); |