X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-parse.c;fp=lib%2Fofp-parse.c;h=e58ae276afb1f7f640f96404b0655cc59b2a3871;hb=e51b8b03f936960d097fc642cb694d119829c054;hp=a3492cbc64cd236918cf49bf080474806937c493;hpb=48c60afc61c1aaa620a219485020d3af5313d784;p=sliver-openvswitch.git diff --git a/lib/ofp-parse.c b/lib/ofp-parse.c index a3492cbc6..e58ae276a 100644 --- a/lib/ofp-parse.c +++ b/lib/ofp-parse.c @@ -440,6 +440,7 @@ str_to_action(char *str, struct ofpbuf *b) if (remainder) { ofpbuf_put_zeros(b, OFP_ACTION_ALIGN - remainder); } + nan = (struct nx_action_note *)((char *)b->data + start_ofs); nan->len = htons(b->size - start_ofs); } else if (!strcasecmp(act, "move")) { struct nx_action_reg_move *move;