mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 05:18:23 +02:00
Don't allow empty service value
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3531 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
d60d61c9d1
commit
5784c7668a
1 changed files with 7 additions and 2 deletions
|
|
@ -24,8 +24,13 @@ verify (NMSetting *setting, GSList *all_settings)
|
|||
{
|
||||
NMSettingPPPOE *self = NM_SETTING_PPPOE (setting);
|
||||
|
||||
if (!self->username) {
|
||||
g_warning ("Missing username");
|
||||
if (!self->username || !strlen (self->username)) {
|
||||
g_warning ("Missing or empty username");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (self->service && !strlen (self->service)) {
|
||||
g_warning ("Empty service");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue