mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 00:40:08 +01:00
device: add check for NULL connection diff in check_and_reapply_connection()
Fixes: 592b211bcc
This commit is contained in:
parent
e72b43e01f
commit
2eeb13d81e
1 changed files with 3 additions and 1 deletions
|
|
@ -8558,8 +8558,10 @@ check_and_reapply_connection (NMDevice *self,
|
|||
NM_SETTING_COMPARE_FLAG_IGNORE_SECRETS,
|
||||
&diffs);
|
||||
|
||||
if (nm_audit_manager_audit_enabled (nm_audit_manager_get ()))
|
||||
if (diffs && nm_audit_manager_audit_enabled (nm_audit_manager_get ()))
|
||||
*audit_args = nm_utils_format_con_diff_for_audit (diffs);
|
||||
else
|
||||
*audit_args = NULL;
|
||||
|
||||
/**************************************************************************
|
||||
* check for unsupported changes and reject to reapply
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue