about summary refs log tree commit diff
path: root/src/core/nm-dcb.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-01-13 22:34:27 +0100
committerMichael Biebl <biebl@debian.org>2022-01-13 22:34:27 +0100
commitdd97d276b5d70c3397a4e59c978ca5228f06ba44 (patch)
tree5fb3f5e0f5da28e39d3261d50561349a512ba297 /src/core/nm-dcb.c
parent3e2f6719468f8d957ae3cb112f3cb75b9c82d6a7 (diff)
parent88c227d90a6b7b388c5c85d72802a0ca8f05ed5c (diff)
Update upstream source from tag 'upstream/1.34.0'
Update to upstream version '1.34.0'
with Debian dir b598c27ee9cef517760bc745aa6a3bb7d9fb2ecb
Diffstat (limited to 'src/core/nm-dcb.c')
-rw-r--r--src/core/nm-dcb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/nm-dcb.c b/src/core/nm-dcb.c
index 930a1023..f048d999 100644
--- a/src/core/nm-dcb.c
+++ b/src/core/nm-dcb.c
@@ -35,7 +35,7 @@ do_helper(const char *iface,
     cmdline = g_strdup_vprintf(fmt, args);
     va_end(args);
 
-    split = nm_utils_strsplit_set_with_empty(cmdline, " ");
+    split = nm_strsplit_set_with_empty(cmdline, " ");
     if (!split) {
         g_set_error(error,
                     NM_MANAGER_ERROR,
@@ -258,7 +258,8 @@ _fcoe_setup(const char *  iface,
 
     flags = nm_setting_dcb_get_app_fcoe_flags(s_dcb);
     if (flags & NM_SETTING_DCB_FLAG_ENABLE) {
-        const char *mode = nm_setting_dcb_get_app_fcoe_mode(s_dcb);
+        const char *mode =
+            nm_setting_dcb_get_app_fcoe_mode(s_dcb) ?: NM_SETTING_DCB_FCOE_MODE_FABRIC;
 
         if (!do_helper(NULL, FCOEADM, run_func, user_data, error, "-m %s -c %s", mode, iface))
             return FALSE;