if (g_variant_iter_n_children(&outer) == 0)
return;
- if (connection->user_routes)
+ if (connection->user_routes == NULL) {
+ ERROR("connection->server_routes is NULL");
+ return;
+ } else
g_slist_free_full(connection->user_routes,
free_vpn_connection_route);
if (g_variant_iter_n_children(&outer) == 0)
return;
- if (connection->server_routes)
+ if (connection->server_routes == NULL) {
+ ERROR("connection->server_routes is NULL");
+ return;
+ } else
g_slist_free_full(connection->server_routes,
free_vpn_connection_route);