~ubuntu-branches/ubuntu/wily/389-ds-base/wily-proposed

« back to all changes in this revision

Viewing changes to ldap/servers/plugins/retrocl/retrocl_po.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-07-08 15:50:11 UTC
  • mto: (19.1.1 experimental) (0.3.1)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20140708155011-48naeyka2x89ew8g
Tags: upstream-1.3.2.19
ImportĀ upstreamĀ versionĀ 1.3.2.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
541
541
    if (NULL != ldm) {
542
542
        l = make_changes_string( ldm, lastmodattrs );
543
543
        if ( NULL != l ) {
544
 
            val.bv_val = l->ls_buf;
545
 
            val.bv_len = l->ls_len + 1; /* string + terminating \0 */
546
 
            slapi_entry_add_values( e, attr_changes, vals );
 
544
            if (l->ls_len) {
 
545
                val.bv_val = l->ls_buf;
 
546
                val.bv_len = l->ls_len;
 
547
                slapi_entry_add_values( e, attr_changes, vals );
 
548
            }
547
549
            lenstr_free( &l );
548
550
        }
549
551
    }