Skip to content
  • Thomas Haller's avatar
    device: handle failure in generate_duid_from_machine_id() in dhcp6_get_duid() · 6d06a0e1
    Thomas Haller authored
    dhcp6_get_duid() already handles failure to generate the DUID in a
    sensible manner. No reason to duplicate the error handling in
    generate_duid_from_machine_id().
    
    Especially, because generate_duid_from_machine_id() used to cache the
    random DUID in memory and reuse it from then on. There is no reason to do
    that, /etc/machine-id must be available to NetworkManager. We still
    handle such a grave error gracefully by generating a random DUID.
    6d06a0e1