summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Schwermer <sven.schwermer@disruptive-technologies.com>2018-10-22 09:54:28 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2018-10-22 10:53:16 +0200
commit1913a4d2590d42413b04c0cf86321286bb2e2dbd (patch)
tree208809186c367067f80d0115a6c4fbe23f89c0d6
parent2ee2305ed8012b4bd0ff53c2385e7ee0dafaf4f0 (diff)
downloadNetworkManager-1913a4d2590d42413b04c0cf86321286bb2e2dbd.tar.gz
ppp: check ppp status against correct type
ppp_status is of type NMPPPStatus whereas PHASE_RUNNING is pppd's type. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/28
-rw-r--r--src/ppp/nm-pppd-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ppp/nm-pppd-plugin.c b/src/ppp/nm-pppd-plugin.c
index 0919634006..5e99be4112 100644
--- a/src/ppp/nm-pppd-plugin.c
+++ b/src/ppp/nm-pppd-plugin.c
@@ -132,7 +132,7 @@ nm_phasechange (void *data, int arg)
NULL, NULL);
}
- if (ppp_status == PHASE_RUNNING) {
+ if (ppp_status == NM_PPP_STATUS_RUNNING) {
index = if_nametoindex (ifname);
/* Make a sync call to ensure that when the call
* terminates the interface already has its final