summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2017-03-06 17:47:27 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2017-03-07 09:57:45 +0100
commit2eeb13d81e82ce47e76290c75ab3dfedb768f563 (patch)
tree072d89b31aa718e72c3366a1febbb5df6b404680
parente72b43e01fd2792cfa6470dc0984e2c89e8b2bb1 (diff)
downloadNetworkManager-2eeb13d81e82ce47e76290c75ab3dfedb768f563.tar.gz
device: add check for NULL connection diff in check_and_reapply_connection()
Fixes: 592b211bcc4d43f40b94c2c324afd2658db9dfdd
-rw-r--r--src/devices/nm-device.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c
index 94b94c0151..8fef0d2ee6 100644
--- a/src/devices/nm-device.c
+++ b/src/devices/nm-device.c
@@ -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