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 21:55:19 +0000 (14:55 -0700)
commitf78fb99eb3797de62f73249faf625c25d32b228e
treed2b1e07cfe946cabd06e405e92e58628903f077c
parent3da7ade16b791fc8d62eaffb97609700de23620b
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