From: Klas Lindfors Date: Fri, 19 Apr 2013 13:29:14 +0000 (+0200) Subject: check that ykp_export_config() call actually worked X-Git-Tag: v1.13.0~13 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f2fe94c3a3dbd1ac13744729d30c36e69386456;p=yubikey-personalization check that ykp_export_config() call actually worked --- diff --git a/ykpersonalize.c b/ykpersonalize.c index 5aaaa06..16f2733 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -198,7 +198,9 @@ int main(int argc, char **argv) } if (outf) { - ykp_export_config(cfg, data, 1024, data_format); + if(!(ykp_export_config(cfg, data, 1024, data_format))) { + goto err; + } if(!(fwrite(data, 1, strlen(data), outf))) { goto err; }