[Git][NTPsec/ntpsec][903-stale-buffer-read-in-cvt_trimtsip-enables-controlled-clock-step-and-false-leap-second] libparse/clk_trimtsip.c: remove unreachable return.

Gary E. Miller (@garyedmundsmiller) gitlab at mg.gitlab.com
Tue Nov 17 03:41:51 UTC 2026



Gary E. Miller pushed to branch 903-stale-buffer-read-in-cvt_trimtsip-enables-controlled-clock-step-and-false-leap-second at NTPsec / ntpsec


Commits:
0642ecf9 by Gary E. Miller at 2026-11-16T19:41:05-08:00
libparse/clk_trimtsip.c: remove unreachable return.

And put it in a better place, to make it obvious the case  does
not FALLTHROUGH.

- - - - -


1 changed file:

- libparse/clk_trimtsip.c


Changes:

=====================================
libparse/clk_trimtsip.c
=====================================
@@ -278,11 +278,8 @@ cvt_trimtsip(
 				    clock_time->flags |= PARSEB_POSITION;
 			    }
 			    clock_time->flags |= PARSEB_S_LEAP|PARSEB_S_POSITION;
-
-			    return CVT_OK;
-
 		    } /* case 0x41 */
-                    return CVT_NONE;
+                    return CVT_OK;
 
 		    case CMD_RRECVHEALTH:
 		    {



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/0642ecf9be90d696eecadb68b53570a06958a9c3

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/0642ecf9be90d696eecadb68b53570a06958a9c3
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20261117/c0a3a404/attachment-0001.htm>


More information about the vc mailing list