]> git.deb.at Git - pkg/abook.git/commitdiff
ldif: Don't arbitrarily reject LDIF records missing a
authorRaphaël Droz <raphael.droz+floss@gmail.com>
Thu, 13 Dec 2012 17:00:35 +0000 (18:00 +0100)
committerRaphaël Droz <raphael.droz+floss@gmail.com>
Thu, 13 Dec 2012 17:03:45 +0000 (18:03 +0100)
 "xmozillanickname" (NICK) field.

filter.c

index 3aa3708a78acd5c2c23b1c8d0450a74821a4b4cb..de787f74104a5147f8e31d0f45f66be886ea4343 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -609,10 +609,6 @@ ldif_add_item(ldif_item li)
 
        item = item_create();
 
-       if(!li[LDIF_ITEM_FIELDS -1])
-               goto bail_out;
-
-
        for(i=0; i < LDIF_ITEM_FIELDS; i++) {
                if(ldif_conv_table[i] >= 0 && li[i] && *li[i])
                        item_fput(item,ldif_conv_table[i],xstrdup(li[i]));
@@ -620,7 +616,6 @@ ldif_add_item(ldif_item li)
 
        add_item2database(item);
 
-bail_out:
        for(i=0; i < LDIF_ITEM_FIELDS; i++)
                xfree(li[i]);
        item_free(&item);