From: Raphaƫl Droz Date: Thu, 13 Dec 2012 17:00:35 +0000 (+0100) Subject: ldif: Don't arbitrarily reject LDIF records missing a X-Git-Tag: upstream/0.6.1~2^2~31 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=83fc8566e28419d1a16c7ecaee784586a51ae6e1;p=pkg%2Fabook.git ldif: Don't arbitrarily reject LDIF records missing a "xmozillanickname" (NICK) field. --- diff --git a/filter.c b/filter.c index 3aa3708..de787f7 100644 --- 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);