ovs-ofctl: Fix write before beginning of string in "add-flow".
authorBen Pfaff <blp@nicira.com>
Tue, 13 Apr 2010 17:30:28 +0000 (10:30 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 14 Apr 2010 17:26:35 +0000 (10:26 -0700)
commit80bc2072c0f8b105142f7f30f202809127af87a5
tree51b5620a6b26f44851eb7a7bc46e97619cbcb15b
parent0b6d72fc776179703ba2cc8d8b3ea878a29cad61
ovs-ofctl: Fix write before beginning of string in "add-flow".

If "action" is the first word in a flow specification, then we were writing
one byte before the beginning of the string.  So overwrite the 'a' in
"action" instead; we know it's really there.

Reported-by: Ghanem Bahri <bahri.ghanem@gmail.com>
utilities/ovs-ofctl.c