summaryrefslogtreecommitdiff
path: root/client/bankid.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2012-04-08 16:32:01 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2012-04-08 16:32:01 +0200
commitd165261a4e90db2b3f931074578f88025ebeb7cb (patch)
tree6ebba4706f177fc261a7440ce649a218b080ddbb /client/bankid.c
parentb8ac887506c75a3c8960873d3cb6297c5d120114 (diff)
downloadfribid-d165261a4e90db2b3f931074578f88025ebeb7cb.tar.gz
fribid-d165261a4e90db2b3f931074578f88025ebeb7cb.tar.bz2
fribid-d165261a4e90db2b3f931074578f88025ebeb7cb.zip
Print error message if the expiry file can't be created
Diffstat (limited to 'client/bankid.c')
-rw-r--r--client/bankid.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/bankid.c b/client/bankid.c
index aaf02c9..d9b8580 100644
--- a/client/bankid.c
+++ b/client/bankid.c
@@ -146,7 +146,10 @@ static void storeExpiryParameters(PlatformConfig *cfg,
platform_setConfigBool(cfg, "expiry", "still-valid", valid);
platform_setConfigString(cfg, "expiry", "version-to-emulate", emulatedVersion);
platform_setConfigString(cfg, "expiry", "checked-with-version", DNSVERSION);
- platform_saveConfig(cfg);
+
+ if (!platform_saveConfig(cfg)) {
+ fprintf(stderr, BINNAME ": failed to create expiry file.\n");
+ }
}
/**