• Beniamino Galvani's avatar
    device: don't try to change MTU on a disconnected device · e86ea024
    Beniamino Galvani authored
    ip_config_merge_and_apply() can be called without an applied
    connection, but then it calls nm_device_set_ip_config() and tries to
    retrieve the configured MTU, throwing an assertion if the applied
    connection is NULL.
    
    src/devices/nm-device.c: line 8080 (nm_device_get_configured_mtu_for_wired): should not be reached
    
    Since it doesn't make sense apply a MTU from the connection when there
    is no connection, add a check against this.
    e86ea024
nm-device.c 520 KB