lib/classifier: Fix use of uninitialized memory.
authorJarno Rajahalme <jrajahalme@nicira.com>
Fri, 13 Jun 2014 21:52:59 +0000 (14:52 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Fri, 13 Jun 2014 22:00:51 +0000 (15:00 -0700)
commit5fbb2d9bd069be7ff6a2b46ae45cabae6a1f389b
treef21a551af22f7ff54d50c7e01d18759ce0a2af0f
parent316e886aa8ecdf1ee297ba1ae1c3abc8192c979f
lib/classifier: Fix use of uninitialized memory.

When reaching the end of a prefix trie, we checked one bit off the end
to the intended data.  However, since the trie node in that case has
NULLs for both edge links, this did not result in incorrect
functionality.

Found via check-valgrind.

Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/classifier.c