Segfault on backup if ethernet_dev not loaded

Version 1.60.0

Bugfix
Finished

When running a backup, DirectAdmin will try and put the server IP into the backed up user.conf file: serverip=1.2.3.4 The function used to get this IP could return NULL, should the ethernet_dev (from the directadmin.conf) not be loaded int the network device. The result is a serverip=(NULL) setting (value ptr is zero), causing the segfault during the security check before the write. Added checks in many areas: 1) security check won't segfault on null anymore 2) the serverip won't be added to the user.conf if null was returned ---- T23772 Compile time: Jan 24 2020 at ~14:53:44

Interested to try DirectAdmin? Get a 30-day Free Trial!