diff options
author | Pavel Balaev <mail@void.so> | 2024-02-14 10:13:39 +0300 |
---|---|---|
committer | Pavel Balaev <mail@void.so> | 2024-02-14 11:25:56 +0300 |
commit | 8225ef18fda48a1f31774a739c18cfd3bc81f4cc (patch) | |
tree | b14668aa2810e987f6ebb8115e86374563092434 | |
parent | 8bcf47fa424458bbff798a8b5409a0f8d905f0e5 (diff) |
add_iface: check interface name is set
Closes #167
-rw-r--r-- | src/nm_edit_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm_edit_net.c b/src/nm_edit_net.c index fb89fd1..4abba62 100644 --- a/src/nm_edit_net.c +++ b/src/nm_edit_net.c @@ -633,7 +633,7 @@ nm_edit_net_get_data(const nm_str_t *name, nm_iface_t *ifp, bool add) nm_get_field_buf(fields[NM_FLD_FWD], &ifp->hostfwd); nm_get_field_buf(fields[NM_FLD_SMB], &ifp->smb); - if (field_status(fields[NM_FLD_NAME])) { + if (field_status(fields[NM_FLD_NAME]) || add) { nm_form_check_data(_("Interface name"), ifp->name, err); } if (field_status(fields[NM_FLD_NDRV])) { |