[ovs-dev] [PATCH 1/2] ofp-util: Fix starting offset of OpenFlow error messages.

Ben Pfaff blp at nicira.com
Thu Dec 9 00:04:06 UTC 2010


On Wed, Dec 08, 2010 at 03:49:17PM -0800, Justin Pettit wrote:
> ---
>  lib/ofp-util.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/ofp-util.c b/lib/ofp-util.c
> index f37b644..471ed51 100644
> --- a/lib/ofp-util.c
> +++ b/lib/ofp-util.c
> @@ -1995,6 +1995,7 @@ make_ofp_error_msg(int error, const struct ofp_header *oh)
>      }
>  
>      if (len) {
> +        buf->size -= len;
>          ofpbuf_put(buf, data, len);
>      }

This seems reasonable, as long as you've verified that it fixes the
problem.




More information about the dev mailing list