Skip to content

Commit

Permalink
add_iface: check interface name is set
Browse files Browse the repository at this point in the history
Closes #167
  • Loading branch information
0x501D committed Feb 14, 2024
1 parent 8bcf47f commit 8225ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nm_edit_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 8225ef1

Please sign in to comment.