summaryrefslogtreecommitdiffstats
path: root/src/userpref.c
diff options
context:
space:
mode:
authorGravatar Jonathan Beck2008-08-03 22:05:56 +0200
committerGravatar Matt Colyer2008-08-05 23:28:10 -0700
commit890ac04a0b4b6b6c5e3632de63ac844729f549dc (patch)
treebb6cd7d3d08b79275f6b7a1e9b05d958756caad8 /src/userpref.c
parentb9f9675e1e3978693bb2e7f66a7125473b3cb30e (diff)
downloadlibimobiledevice-890ac04a0b4b6b6c5e3632de63ac844729f549dc.tar.gz
libimobiledevice-890ac04a0b4b6b6c5e3632de63ac844729f549dc.tar.bz2
Fix mem allocation in config initialization.
Signed-off-by: Matt Colyer <matt@colyer.name>
Diffstat (limited to 'src/userpref.c')
-rw-r--r--src/userpref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userpref.c b/src/userpref.c
index 399e054..f93cff4 100644
--- a/src/userpref.c
+++ b/src/userpref.c
@@ -237,7 +237,7 @@ char* get_host_certificate()
int init_config_file(char* host_id, char* root_private_key, char* host_private_key, char* root_cert, char* host_cert)
{
- if (!host_id || !root_private_key || !host_private_key)
+ if (!host_id || !root_private_key || !host_private_key || !root_cert || !host_cert)
return 0;
gchar* config_file = g_build_path(G_DIR_SEPARATOR_S, g_get_user_config_dir(), LIBIPHONE_CONF_DIR, LIBIPHONE_CONF_FILE, NULL);