]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Fix stratum setting when source with non-minimum stratum is selected
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 5 Jun 2013 07:55:00 +0000 (09:55 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 5 Jun 2013 07:55:00 +0000 (09:55 +0200)
sources.c

index 55d070823e100503c25e01aba1b3d2b604838cf1..2c8aa1e81963929f9b2a3b8b3308dd7188ca94b0 100644 (file)
--- a/sources.c
+++ b/sources.c
@@ -846,7 +846,8 @@ SRC_SelectSource(uint32_t match_refid)
                               &src_frequency, &src_skew,
                               &src_root_delay, &src_root_dispersion);
 
-          REF_SetReference(min_stratum, leap_status,
+          REF_SetReference(sources[selected_source_index]->sel_info.stratum,
+                           leap_status,
                            sources[selected_source_index]->ref_id,
                            sources[selected_source_index]->ip_addr,
                            &ref_time,