Skip to content

Commit

Permalink
Fix argcount validation
Browse files Browse the repository at this point in the history
  • Loading branch information
ydahhrk committed Apr 2, 2024
1 parent fcc5ccc commit b1e5021
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/joold/statsocket.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ int statsocket_start(int argc, char **argv)
pthread_t thread;
int error;

if (argc < 3) {
if (argc < 4) {
syslog(LOG_INFO, "statsocket port unavailable; skipping statsocket.");
return 0;
}
Expand Down

0 comments on commit b1e5021

Please sign in to comment.