pud: fix getBestUplinkGateway
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 22 Oct 2012 11:01:18 +0000 (13:01 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 22 Oct 2012 11:55:39 +0000 (13:55 +0200)
commitb7d41dcd3d31b7ca60193edd6418086cf64be070
tree17964ba1f31458f5fd8c1e86b6623c0b21adaf57
parent22dd4de9e186157924327427344ec995a0e9bb31
pud: fix getBestUplinkGateway

Coverity:
CID 739645 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
At (18): Passing null pointer "&gw_best->originator.v4" to function
         "ip4cmp(struct in_addr const *, struct in_addr const *)", which
         dereferences it.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
lib/pud/src/uplinkGateway.c