]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix a64448ba, invalid NULL->num_labels
authorVincent JARDIN <vincent.jardin@6wind.com>
Mon, 9 Oct 2017 10:32:05 +0000 (12:32 +0200)
committerVincent JARDIN <vincent.jardin@6wind.com>
Mon, 9 Oct 2017 10:32:05 +0000 (12:32 +0200)
commit3f58e1b3e79090f29f8b4b75bb529d54ba719c26
tree77039182237310ba9f215d10e52fa747b0aa6784
parent67533c11d2069bcf65a08a84e26fba900448f4ea
lib: fix a64448ba, invalid NULL->num_labels

We should assume match OK only when neither nhl1
and neither nhl2 are NULL.
If both are NULL, it means match NOK.

Clang Warning:
  Access to field 'num_labels' results in a dereference of a null
  pointer (loaded from variable 'nhl1')

Signed-off-by: Vincent Jardin <vincent.jardin@6wind.com>
lib/nexthop.c