]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: wifi: ssid may be NULL
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Dec 2021 17:43:21 +0000 (02:43 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 8 Dec 2021 17:43:29 +0000 (02:43 +0900)
This fixes the following log message:
systemd-networkd[888]: wlan0: nl80211: received new_interface(7) message: iftype=station, ssid=(null)

src/network/networkd-wifi.c

index f1d5c7d8d40dd7a744c05e925011e985e9cadaee..8fd1cf5039f014fa7a2bd21358005779d5aa99ef 100644 (file)
@@ -130,7 +130,7 @@ int manager_genl_process_nl80211_config(sd_netlink *genl, sd_netlink_message *me
 
         log_link_debug(link, "nl80211: received %s(%u) message: iftype=%s, ssid=%s",
                        strna(nl80211_cmd_to_string(cmd)), cmd,
-                       strna(nl80211_iftype_to_string(wlan_iftype)), ssid);
+                       strna(nl80211_iftype_to_string(wlan_iftype)), strna(ssid));
 
         switch(cmd) {
         case NL80211_CMD_SET_INTERFACE: