Skip to content

Commit

Permalink
Merge pull request #523 from monder/endpoints
Browse files Browse the repository at this point in the history
aws-vpc: Fix crash when route has vpc-endpoints
  • Loading branch information
tomdee authored Oct 25, 2016
2 parents f2bf330 + 94e4963 commit 2fc9397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/awsvpc/awsvpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (be *AwsVpcBackend) checkMatchingRoutes(routeTableID, instanceID, subnet st

for _, routeTable := range resp.RouteTables {
for _, route := range routeTable.Routes {
if subnet == *route.DestinationCidrBlock && *route.State == "active" {
if route.DestinationCidrBlock != nil && subnet == *route.DestinationCidrBlock && *route.State == "active" {

if *route.InstanceId == instanceID {
matchingRouteFound = true
Expand Down

0 comments on commit 2fc9397

Please sign in to comment.