diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-28 04:09:05 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2013-11-28 04:09:05 +0000 |
commit | 4d55b43fe6f1c786865dddd6a6e1efd82d10f54f (patch) | |
tree | d19ea7b9aa615f82e9c8480ffb50216723d545ac /libsylph/ssl.c | |
parent | 34318a0b7b0064c18e639d5ebc9adb78fc2b6d5a (diff) |
libsylph/ssl.c: ssl_done(): check if fp != NULL.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3305 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/ssl.c')
-rw-r--r-- | libsylph/ssl.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |