Skip to content

Commit cb56e6a

Browse files
committed
Improve port boundaries
Signed-off-by: Ryan Underwood <[email protected]>
1 parent 0426c9d commit cb56e6a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

plugins/out_kinesis_firehose/firehose.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int cb_firehose_init(struct flb_output_instance *ins,
140140
}
141141
else {
142142
flb_plg_error(ins, "Invalid port number: %d. Must be between %d and %d",
143-
ins->host.port, 0, (uint16_t)-1);
143+
ins->host.port, 1, UINT16_MAX);
144144
goto error;
145145
}
146146

plugins/out_kinesis_streams/kinesis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static int cb_kinesis_init(struct flb_output_instance *ins,
137137
}
138138
else {
139139
flb_plg_error(ins, "Invalid port number: %d. Must be between %d and %d",
140-
ins->host.port, 0, (uint16_t)-1);
140+
ins->host.port, 1, UINT16_MAX);
141141
goto error;
142142
}
143143

0 commit comments

Comments
 (0)