Skip to content
Browse files

fixes issue in port desc multipart reply due to incorrect use of vari…

…able port
  • Loading branch information...
1 parent 767001e commit 4cc446ed45c72c73f3e15db8b089dc36309d419e @nickkaranatsios nickkaranatsios committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 ruby/trema/messages/multipart-reply-handler.c
View
4 ruby/trema/messages/multipart-reply-handler.c
@@ -432,8 +432,8 @@ unpack_port_desc_multipart_reply( VALUE r_attributes, void *data, size_t length
VALUE r_port_attrs = rb_hash_new();
while ( length >= sizeof( struct ofp_port ) ) {
unpack_port( port, r_port_attrs );
- VALUE port = rb_funcall( rb_eval_string( "Messages::Port" ), rb_intern( "new" ), 1, r_port_attrs );
- rb_ary_push( r_ports_ary, port );
+ VALUE r_port = rb_funcall( rb_eval_string( "Messages::Port" ), rb_intern( "new" ), 1, r_port_attrs );
+ rb_ary_push( r_ports_ary, r_port );
length -= sizeof( struct ofp_port );
port++;
}

0 comments on commit 4cc446e

Please sign in to comment.
Something went wrong with that request. Please try again.