mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
* NULL pointer spotted by Vlasios.
This commit is contained in:
parent
237b1617b5
commit
5fb8871fb6
@ -28,7 +28,7 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: uaodv-rt.c,v 1.6 2007/05/09 16:45:53 bg- Exp $
|
||||
* $Id: uaodv-rt.c,v 1.7 2007/05/13 15:14:48 bg- Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -109,7 +109,7 @@ uaodv_rt_lookup(uip_ipaddr_t *dest)
|
||||
struct uaodv_rt_entry *e;
|
||||
|
||||
e = uaodv_rt_lookup_any(dest);
|
||||
if(e->is_bad)
|
||||
if(e != NULL && e->is_bad)
|
||||
return NULL;
|
||||
return e;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user