Skip to content

Commit

Permalink
Add default case for NatBehaviorStr
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankiesz authored Dec 7, 2023
1 parent 28e235b commit 9a41544
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/source/Ice/NatBehaviorDiscovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,5 +381,8 @@ PCHAR getNatBehaviorStr(NAT_BEHAVIOR natBehavior)
return NAT_BEHAVIOR_ADDRESS_DEPENDENT_STR;
case NAT_BEHAVIOR_PORT_DEPENDENT:
return NAT_BEHAVIOR_PORT_DEPENDENT_STR;
default:
// NOTE: This should be properly handled with something like "NAT_BEHAVIOR_UNDEFINED"
return NAT_BEHAVIOR_NONE_STR;
}
}

0 comments on commit 9a41544

Please sign in to comment.