From: Ben Pfaff Date: Thu, 18 Dec 2008 20:43:57 +0000 (-0800) Subject: cfg: Fix functions for retrieving keys. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0b37f9a81003d206e3c6853dab32a8b5a31428;p=openvswitch cfg: Fix functions for retrieving keys. They didn't work. At all. --- diff --git a/vswitchd/cfg.c b/vswitchd/cfg.c index aa33bddb..2a1424dd 100644 --- a/vswitchd/cfg.c +++ b/vswitchd/cfg.c @@ -717,7 +717,7 @@ get_nth_value(int idx, const char *key) { char **p = find_key_le(key); char **q = find_key_ge(key); - return idx < q - p ? extract_value(key) : NULL; + return idx < q - p ? extract_value(p[idx]) : NULL; } #if 0