ovs-openflowd: Don't segfault when no controllers specified
authorJustin Pettit <jpettit@nicira.com>
Fri, 8 Oct 2010 06:51:02 +0000 (23:51 -0700)
committerJustin Pettit <jpettit@nicira.com>
Fri, 8 Oct 2010 06:51:02 +0000 (23:51 -0700)
commitc5cd8b2ef14fa258f57ac5046ca3e85d97cd7650
treef3961d68a5a04c55d042aca934822d13a6505d8d
parent0de7a4b484d685a93b251023b86eed10c0045a40
ovs-openflowd: Don't segfault when no controllers specified

If no controllers are specified on the command-line, ovs-openflowd adds
a couple of its own.  The code that accounts for the controllers
correctly allocated space for them, but used the command-line count to
determine how many to set.  This led to a segfault when later code tried
to dereference them.

Reported-by: Derek Cormier <derek.cormier@lab.ntt.co.jp>
AUTHORS
utilities/ovs-openflowd.c