cfg: Terminate cfg to prevent crashes
authorJustin Pettit <jpettit@nicira.com>
Sat, 1 Aug 2009 07:58:31 +0000 (00:58 -0700)
committerJustin Pettit <jpettit@nicira.com>
Sat, 1 Aug 2009 07:58:31 +0000 (00:58 -0700)
commit590ab3cc649ca3ecc56e6c5057e7e4e24874a625
treebb2b773273b7f7c96510b5e7216e3cbb30c33d41
parent85c74638ed99b77d6894385c3dce0175c4b4baa4
cfg: Terminate cfg to prevent crashes

If cfg_* accessor calls were made before cfg_read() was called (or it
returned error), they could cause segfault.  This checkin terminates the
cfg structure in such a way that will prevent these run-time problems.

Bug #1693
lib/cfg.c
lib/cfg.h