aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--libsylph/ssl.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a68f27e4..4f47797f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2013-11-28
+ * libsylph/ssl.c: ssl_done(): check if fp != NULL.
+
+2013-11-28
+
* src/colorlabel.c: colorlabel_recreate_label(): added missing
parentheses.
diff --git a/libsylph/ssl.c b/libsylph/ssl.c
index c42214e1..92165832 100644
--- a/libsylph/ssl.c
+++ b/libsylph/ssl.c
@@ -182,7 +182,8 @@ void ssl_done(void)
trust_file);
X509_free((X509 *)cur->data);
}
- fclose(fp);
+ if (fp)
+ fclose(fp);
g_free(trust_file);
g_slist_free(trust_list);
trust_list = NULL;