device: fix handling of available connections
authorBeniamino Galvani <bgalvani@redhat.com>
Fri, 11 Mar 2016 14:36:35 +0000 (15:36 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Tue, 15 Mar 2016 16:38:58 +0000 (17:38 +0100)
commitca5da5d80f3a21847bb807021e2e40d25bca50d0
tree8bfa84eadf69b0a80170cd320f9d5e2d29e703f5
parent7037e0b37411cf25ff0af94f1aa7b868a1398bd7
device: fix handling of available connections

The prune list is for elements that must be deleted from the list of
available connections. So, when processing all the existing
connections an element must be deleted from the prune list iff it's
available.

Fixes: 8b2abe0e2c8f162544a2562fc18a7becbc55d233

https://bugzilla.redhat.com/show_bug.cgi?id=1316488
src/devices/nm-device.c