]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
sys: fix TMX_ResetOffset() to set status back correctly
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Apr 2015 10:27:13 +0000 (12:27 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 27 Apr 2015 10:27:55 +0000 (12:27 +0200)
wrap_adjtimex.c

index a6015b2634c32c8e73cfb62b66ca48fe8de07beb..ef7b066032cf9b2875ddd65d8d5e148544eb0cca 100644 (file)
@@ -71,7 +71,7 @@ TMX_ResetOffset(void)
 
   /* Set status back */
   txc.modes = ADJ_STATUS;
-  txc.modes = status;
+  txc.status = status;
   if (adjtimex(&txc) < 0)
     return -1;