diff options
-rw-r--r-- | networking/ntpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c index 4f8607244..041cac762 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -2539,6 +2539,7 @@ static NOINLINE void ntp_init(char **argv) int key_id; peer += 6; end = strchr(peer, ':'); + if (!end) bb_show_usage(); *end = '\0'; key_id = xatou_range(peer, 1, MAX_KEY_NUMBER); *end = ':'; |