aboutsummaryrefslogtreecommitdiffstats
path: root/src/libpts/swid/swid_inventory.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2014-04-14 11:25:41 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2014-04-15 09:21:06 +0200
commit14007fd1d90369898131290be64dfa9a4db7f814 (patch)
tree2e038b280ae28f783bfd6bacfc0cf8b30ef6a279 /src/libpts/swid/swid_inventory.c
parent975472e42f2b1cc0fd375b6d9240089697d2e2bf (diff)
downloadstrongswan-14007fd1d90369898131290be64dfa9a4db7f814.tar.bz2
strongswan-14007fd1d90369898131290be64dfa9a4db7f814.tar.xz
swid_generator software-id does not generate empty lines any more
Diffstat (limited to 'src/libpts/swid/swid_inventory.c')
-rw-r--r--src/libpts/swid/swid_inventory.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libpts/swid/swid_inventory.c b/src/libpts/swid/swid_inventory.c
index 9e85647bc..062bf4ec5 100644
--- a/src/libpts/swid/swid_inventory.c
+++ b/src/libpts/swid/swid_inventory.c
@@ -156,11 +156,6 @@ static status_t generate_tags(private_swid_inventory_t *this, char *generator,
unique_sw_id = chunk_create(separator, len - (separator - line));
tag_id = swid_tag_id_create(tag_creator, unique_sw_id, tag_file_path);
this->list->insert_last(this->list, tag_id);
-
- if (fgets(line, sizeof(line), file) <= 0)
- {
- goto end;
- }
}
}