* Connection Manager
*
* Copyright (C) 2010 BMW Car IT GmbH. All rights reserved.
- * Copyright (C) 2011 Intel Corporation. All rights reserved.
+ * Copyright (C) 2012 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
if (strncmp(pptp_options[i].cm_opt, "PPTP.", 5) == 0) {
option = connman_provider_get_string(provider,
pptp_options[i].cm_opt);
+ if (option == NULL)
+ continue;
+
g_key_file_set_string(keyfile,
connman_provider_get_save_group(provider),
pptp_options[i].cm_opt, option);