diff options
| author | Thomas Haller <thaller@redhat.com> | 2017-11-23 21:53:04 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2017-11-27 14:04:11 +0100 |
| commit | 10a46c5ae2a488dc933d2e4a510bfb5d033f72bb (patch) | |
| tree | 0263d7cf8a273fb7787b3748ee31d73b2ecdfbf9 /src/nm-act-request.c | |
| parent | 3a907377ac360325e8dea3f5ff864ce55a4950c1 (diff) | |
| download | NetworkManager-10a46c5ae2a488dc933d2e4a510bfb5d033f72bb.tar.gz | |
core: merge IPv4 and IPv6 versions of nm_active_connection_get_default()
Diffstat (limited to 'src/nm-act-request.c')
| -rw-r--r-- | src/nm-act-request.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nm-act-request.c b/src/nm-act-request.c index 29bb3a05bb..164f44d2cf 100644 --- a/src/nm-act-request.c +++ b/src/nm-act-request.c @@ -454,10 +454,8 @@ device_state_changed (NMActiveConnection *active, } if ( ac_state == NM_ACTIVE_CONNECTION_STATE_DEACTIVATED - || ac_state == NM_ACTIVE_CONNECTION_STATE_UNKNOWN) { - nm_active_connection_set_default (active, FALSE); - nm_active_connection_set_default6 (active, FALSE); - } + || ac_state == NM_ACTIVE_CONNECTION_STATE_UNKNOWN) + nm_active_connection_set_default (active, AF_UNSPEC, FALSE); nm_active_connection_set_state (active, ac_state, ac_state_reason); } |
