Skip to content

Commit

Permalink
validation for addressing issue #213
Browse files Browse the repository at this point in the history
  • Loading branch information
pschou committed Apr 27, 2022
1 parent 7f75429 commit d41c664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/fwdIp/fwdIp.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ func (o ForwardIPOpts) MatchList() []string {

func ServiceConfigurationFromReservation(reservation string) *ServiceConfiguration {
parts := strings.Split(reservation, ":")
if len(parts) != 2 {
if len(parts) != 2 || len(parts[0]) == 0 || len(parts[1]) == 0 {
return nil
}
return &ServiceConfiguration{
Expand Down

0 comments on commit d41c664

Please sign in to comment.