Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
NetworkManager-vpnc
nm-vpnc-check-invalid-configuration.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nm-vpnc-check-invalid-configuration.patch of Package NetworkManager-vpnc
Index: NetworkManager-vpnc-1.0.8/src/nm-vpnc-service.c =================================================================== --- NetworkManager-vpnc-1.0.8.orig/src/nm-vpnc-service.c +++ NetworkManager-vpnc-1.0.8/src/nm-vpnc-service.c @@ -180,6 +180,13 @@ validate_one_property (const char *key, case ITEM_TYPE_IGNORED: break; /* technically valid, but unused */ case ITEM_TYPE_STRING: + if (strchr (value, '\n' || strchr (value, '\r'))) { + g_set_error (info->error, + NM_VPN_PLUGIN_ERROR, + NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS, + _("property '%s' contains a newline character"), + key); + } break; /* valid */ case ITEM_TYPE_PATH: if ( !value @@ -805,7 +812,7 @@ nm_vpnc_config_write (gint vpnc_fd, NM_VPNC_KEY_XAUTH_USER " %s\n", default_username); } - + /* Use Cisco UDP by default */ props_natt_mode = nm_setting_vpn_get_data_item (s_vpn, NM_VPNC_KEY_NAT_TRAVERSAL_MODE); if (!props_natt_mode || !strlen (props_natt_mode)) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor