Fixes:
ad99e2ed49 (Better abstract OFPT_SET_CONFIG and OFPT_GET_CONFIG_REPLY, make stricter.)
Reported-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
-/* Copyright (c) 2015 Red Hat, Inc.
+/* Copyright (c) 2015, 2016 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
struct ofp_switch_config *config_, config;
ofpbuf_use_const(&rq_buf, oh, ntohs(oh->length));
struct ofp_switch_config *config_, config;
ofpbuf_use_const(&rq_buf, oh, ntohs(oh->length));
+ ofpraw_pull_assert(&rq_buf);
config_ = ofpbuf_pull(&rq_buf, sizeof *config_);
config = *config_;
config.miss_send_len = htons(UINT16_MAX);
config_ = ofpbuf_pull(&rq_buf, sizeof *config_);
config = *config_;
config.miss_send_len = htons(UINT16_MAX);