diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap.c b/src/providers/ldap/sdap.c index 65fbc8c1e..11ba9cf34 100644 --- a/src/providers/ldap/sdap.c +++ b/src/providers/ldap/sdap.c @@ -252,6 +252,12 @@ int sdap_parse_entry(TALLOC_CTX *memctx, goto done; } for (i = 0; vals[i]; i++) { + if (vals[i]->bv_len == 0) { + DEBUG(SSSDBG_MINOR_FAILURE, + ("Value of attribute [%s] is empty. " + "Skipping this value.\n", str)); + continue; + } if (base64) { v.data = (uint8_t *)sss_base64_encode(attrs, (uint8_t *)vals[i]->bv_val, vals[i]->bv_len); |