src/switch_manager/service_interface.c in trema-0.3.14 vs src/switch_manager/service_interface.c in trema-0.3.15
- old
+ new
@@ -129,10 +129,10 @@
openflow_service_header_t *message;
uint64_t datapath_id;
uint16_t service_name_length;
char *service_name;
- if ( buf->length < sizeof( openflow_service_header_t ) + sizeof( struct ofp_header ) ) {
+ if ( buf->length < sizeof( openflow_service_header_t ) ) {
error( "Too short openflow application message(%zu).", buf->length );
free_buffer( buf );
return;
}