network: Split EFspn and EFspdi Refresh handling
authorDenis Kenzior <denkenz@gmail.com>
Fri, 2 Dec 2011 22:00:02 +0000 (16:00 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 2 Dec 2011 22:00:02 +0000 (16:00 -0600)
commit1e052ef1fe9c40f661e750bace13bca3f44b09c9
tree31619239ffe1a2a11b5d1cb542a29de3d73bfd88
parent6746715715e188bbf457b458683355fec460e848
network: Split EFspn and EFspdi Refresh handling

If both EFspn and EFspdi are changed, then we trigger reading of EFspn
twice which leads to a memory leak.  Instead, always read EFspdi if the
relevant service is available.

If EFspdi is changed, use a simple heuristic to update the 'Name'
property if appropriate.  This heuristic is not always correct, but in
the worst case we will emit the same name.
src/network.c