Skip to content

Commit

Permalink
ovn-controller-vtep: Fix dereference of NULL pointer.
Browse files Browse the repository at this point in the history
Found by inspection.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
  • Loading branch information
yew011 committed Aug 18, 2015
1 parent 485f069 commit d8e6570
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ovn/controller-vtep/binding.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ binding_cleanup(struct controller_vtep_ctx *ctx)
const struct sbrec_chassis *chassis_rec
= get_chassis_by_name(ctx->ovnsb_idl, pswitch->name);

if (!chassis_rec) {
continue;
}

for (;;) {
port_binding_rec = shash_find_and_delete(&ch_to_pb,
chassis_rec->name);
Expand Down

0 comments on commit d8e6570

Please sign in to comment.