diff options
author | Yu A Wang <yu.a.wang@intel.com> | 2011-04-25 04:28:17 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-27 10:33:42 +0200 |
commit | 81f29879557ac7d29e1823168397bead6a43ff2f (patch) | |
tree | 9e428609a1c7748cf7f59e1126e01bc56e3191d0 /plugins | |
parent | 98604654bab317a39500dd7a4ab1705248d79f94 (diff) | |
download | connman-81f29879557ac7d29e1823168397bead6a43ff2f.tar.gz connman-81f29879557ac7d29e1823168397bead6a43ff2f.tar.bz2 connman-81f29879557ac7d29e1823168397bead6a43ff2f.zip |
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ntpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/ntpd.c b/plugins/ntpd.c index 3ee2ad86..7a762a80 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); |