Skip to content

Commit 8fc937a

Browse files
darren conroydarren conroy
authored andcommitted
adding checks for TTL being 0
edit the wrong IPv4 function FDR TTL no longer accepts 0 removed wrong setting within a function removed to much there spacing forget to remove if statement removed individual function check for 0 and added a single check
1 parent 8a6cc23 commit 8fc937a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bacnet/basic/object/netport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3285,7 +3285,7 @@ static bool Network_Port_FD_Subscription_Lifetime_Write(
32853285
if (!error_class || !error_code) {
32863286
return status;
32873287
}
3288-
if (value > UINT16_MAX) {
3288+
if (value > UINT16_MAX || value == 0) {
32893289
*error_class = ERROR_CLASS_PROPERTY;
32903290
*error_code = ERROR_CODE_VALUE_OUT_OF_RANGE;
32913291
return status;

0 commit comments

Comments
 (0)