From 81f29879557ac7d29e1823168397bead6a43ff2f Mon Sep 17 00:00:00 2001 From: Yu A Wang Date: Mon, 25 Apr 2011 04:28:17 -0400 Subject: [PATCH] ntp: Fix ntpd_running return TRUE most of the time uninitialized ret value will return TRUE most of the time. By adding bind success situation, ret will be assigned the correct value. --- plugins/ntpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ntpd.c b/plugins/ntpd.c index 3ee2ad8..7a762a8 100644 --- a/plugins/ntpd.c +++ b/plugins/ntpd.c @@ -102,7 +102,8 @@ static connman_bool_t ntpd_running(void) ret = TRUE; else ret = FALSE; - } + } else + ret = FALSE; close(sock); -- 2.7.4