Merge pull request #1123 from cetic/pr-fix-uip-debug-lladdr-print

Check pointer in uip_debug_lladdr_print
This commit is contained in:
Nicolas Tsiftes 2015-06-18 14:19:37 +02:00
commit d36e8adbdd

View file

@ -75,6 +75,10 @@ void
uip_debug_lladdr_print(const uip_lladdr_t *addr)
{
unsigned int i;
if(addr == NULL) {
printf("(NULL LL addr)");
return;
}
for(i = 0; i < sizeof(uip_lladdr_t); i++) {
if(i > 0) {
PRINTA(":");